diff options
author | Jeff Mahoney <jeffm@suse.de> | 2007-04-30 18:09:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 19:40:40 -0400 |
commit | 1173a729fc3ce2fa0d698bd39be8ff7bf6c70bf1 (patch) | |
tree | 562d53dc7faadcd431f87159d2e67512823372b2 /fs/reiserfs | |
parent | 42e380832a6911c8a3173ee0172fbc0e4864d80b (diff) |
reiserfs: suppress lockdep warning
We're getting lockdep warnings due to a post-2.6.21-rc7 bugfix.
The xattr_sem can never be taken in the manner described. Internal inodes
are protected by I_PRIVATE. Add the appropriate annotation.
Cc: <stable@kernel.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index c8178b7b9212..2cac56210e2b 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -68,7 +68,7 @@ static struct dentry *get_xa_root(struct super_block *sb, int flags) | |||
68 | if (!privroot) | 68 | if (!privroot) |
69 | return ERR_PTR(-ENODATA); | 69 | return ERR_PTR(-ENODATA); |
70 | 70 | ||
71 | mutex_lock(&privroot->d_inode->i_mutex); | 71 | mutex_lock_nested(&privroot->d_inode->i_mutex, I_MUTEX_XATTR); |
72 | if (REISERFS_SB(sb)->xattr_root) { | 72 | if (REISERFS_SB(sb)->xattr_root) { |
73 | xaroot = dget(REISERFS_SB(sb)->xattr_root); | 73 | xaroot = dget(REISERFS_SB(sb)->xattr_root); |
74 | goto out; | 74 | goto out; |