Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5110
b: refs/heads/master
c: b3bb8af
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Jul 27, 2005
1 parent 9acbb2d commit a2640e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9b3ad673460fc997a652cd58aa3a345d40e5218
refs/heads/master: b3bb8afd965159f155d4f629cbea158cbcc69275
12 changes: 11 additions & 1 deletion trunk/fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,17 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
out_inserted_sd:
inode->i_nlink = 0;
th->t_trans_id = 0; /* so the caller can't use this handle later */
iput(inode);

/* If we were inheriting an ACL, we need to release the lock so that
* iput doesn't deadlock in reiserfs_delete_xattrs. The locking
* code really needs to be reworked, but this will take care of it
* for now. -jeffm */
if (REISERFS_I(dir)->i_acl_default) {
reiserfs_write_unlock_xattrs(dir->i_sb);
iput(inode);
reiserfs_write_lock_xattrs(dir->i_sb);
} else
iput(inode);
return err;
}

Expand Down

0 comments on commit a2640e9

Please sign in to comment.