aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/reiserfs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index 8891cd88a3f4..a0e2e7acdc75 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -484,7 +484,7 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
484 if (IS_ERR(dentry)) 484 if (IS_ERR(dentry))
485 return PTR_ERR(dentry); 485 return PTR_ERR(dentry);
486 486
487 down_write(&REISERFS_I(inode)->i_xattr_sem); 487 reiserfs_down_read_safe(&REISERFS_I(inode)->i_xattr_sem, inode->i_sb);
488 488
489 xahash = xattr_hash(buffer, buffer_size); 489 xahash = xattr_hash(buffer, buffer_size);
490 while (buffer_pos < buffer_size || buffer_pos == 0) { 490 while (buffer_pos < buffer_size || buffer_pos == 0) {