diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:38 -0400 |
commit | 0ab2621ebd9a28bf7a524ecd50d492a10579dfcc (patch) | |
tree | 62dda6de2fed116aff363190f95a58d56c690e3e /fs/reiserfs/inode.c | |
parent | 48b32a3553a54740d236b79a90f20147a25875e3 (diff) |
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>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 50a73e7afdc8..995f6975cae1 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -1914,9 +1914,8 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
1914 | goto out_inserted_sd; | 1914 | goto out_inserted_sd; |
1915 | } | 1915 | } |
1916 | 1916 | ||
1917 | /* XXX CHECK THIS */ | ||
1918 | if (reiserfs_posixacl(inode->i_sb)) { | 1917 | if (reiserfs_posixacl(inode->i_sb)) { |
1919 | retval = reiserfs_inherit_default_acl(dir, dentry, inode); | 1918 | retval = reiserfs_inherit_default_acl(th, dir, dentry, inode); |
1920 | if (retval) { | 1919 | if (retval) { |
1921 | err = retval; | 1920 | err = retval; |
1922 | reiserfs_check_path(&path_to_key); | 1921 | reiserfs_check_path(&path_to_key); |