diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/reiserfs/xattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 8b9631d30ffc..bfdac66fd8e2 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -289,8 +289,9 @@ static int reiserfs_for_each_xattr(struct inode *inode, | |||
289 | err = journal_begin(&th, inode->i_sb, blocks); | 289 | err = journal_begin(&th, inode->i_sb, blocks); |
290 | if (!err) { | 290 | if (!err) { |
291 | int jerror; | 291 | int jerror; |
292 | mutex_lock_nested(&dir->d_parent->d_inode->i_mutex, | 292 | reiserfs_mutex_lock_nested_safe( |
293 | I_MUTEX_XATTR); | 293 | &dir->d_parent->d_inode->i_mutex, |
294 | I_MUTEX_XATTR, inode->i_sb); | ||
294 | err = action(dir, data); | 295 | err = action(dir, data); |
295 | jerror = journal_end(&th, inode->i_sb, blocks); | 296 | jerror = journal_end(&th, inode->i_sb, blocks); |
296 | mutex_unlock(&dir->d_parent->d_inode->i_mutex); | 297 | mutex_unlock(&dir->d_parent->d_inode->i_mutex); |