reiserfs: journaled xattrs
Deadlocks are possible in the xattr code between the journal lock and the xattr sems. This patch implements journalling for xattr operations. The benefit is twofold: * It gets rid of the deadlock possibility by always ensuring that xattr write operations are initiated inside a transaction. * It corrects the problem where xattr backing files aren't considered any differently than normal files, despite the fact they are metadata. I discussed the added journal load with Chris Mason, and we decided that since xattrs (versus other journal activity) is fairly rare, the introduction of larger transactions to support journaled xattrs wouldn't be too big a deal. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
48b32a3553
commit
0ab2621ebd
@@ -1914,9 +1914,8 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
|
||||
goto out_inserted_sd;
|
||||
}
|
||||
|
||||
/* XXX CHECK THIS */
|
||||
if (reiserfs_posixacl(inode->i_sb)) {
|
||||
retval = reiserfs_inherit_default_acl(dir, dentry, inode);
|
||||
retval = reiserfs_inherit_default_acl(th, dir, dentry, inode);
|
||||
if (retval) {
|
||||
err = retval;
|
||||
reiserfs_check_path(&path_to_key);
|
||||
|
Reference in New Issue
Block a user