]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: journaled xattrs
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Mar 2009 18:02:39 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2009 19:16:38 +0000 (12:16 -0700)
commite0cd4ca3ed53dbc6fdeb02922fc8f1560f7c6d4c
tree62dda6de2fed116aff363190f95a58d56c690e3e
parent956ec8b46e316e5dc0ee2518cddb80fdeaa365ec
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>
fs/reiserfs/inode.c
fs/reiserfs/namei.c
fs/reiserfs/xattr.c
fs/reiserfs/xattr_acl.c
include/linux/reiserfs_acl.h
include/linux/reiserfs_fs.h
include/linux/reiserfs_xattr.h