aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/reiserfs/xattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index 78a3f246295c..8b9631d30ffc 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -82,7 +82,8 @@ static int xattr_unlink(struct inode *dir, struct dentry *dentry)
82 BUG_ON(!mutex_is_locked(&dir->i_mutex)); 82 BUG_ON(!mutex_is_locked(&dir->i_mutex));
83 vfs_dq_init(dir); 83 vfs_dq_init(dir);
84 84
85 mutex_lock_nested(&dentry->d_inode->i_mutex, I_MUTEX_CHILD); 85 reiserfs_mutex_lock_nested_safe(&dentry->d_inode->i_mutex,
86 I_MUTEX_CHILD, dir->i_sb);
86 error = dir->i_op->unlink(dir, dentry); 87 error = dir->i_op->unlink(dir, dentry);
87 mutex_unlock(&dentry->d_inode->i_mutex); 88 mutex_unlock(&dentry->d_inode->i_mutex);
88 89