From: Jeff Mahoney Date: Mon, 30 Apr 2007 22:09:50 +0000 (-0700) Subject: reiserfs: suppress lockdep warning X-Git-Tag: upstream/snapshot3+hdmi~34939 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1173a729fc3ce2fa0d698bd39be8ff7bf6c70bf1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Cc: "Antonino A. Daplas" Cc: Takashi Iwai Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index c8178b7..2cac562 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) if (!privroot) return ERR_PTR(-ENODATA); - mutex_lock(&privroot->d_inode->i_mutex); + mutex_lock_nested(&privroot->d_inode->i_mutex, I_MUTEX_XATTR); if (REISERFS_SB(sb)->xattr_root) { xaroot = dget(REISERFS_SB(sb)->xattr_root); goto out;