aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-01-02 21:44:53 -0500
committerFrederic Weisbecker <fweisbec@gmail.com>2010-01-02 21:44:53 -0500
commitf3e22f48f37c1e14441c9f72ca8e63b1d4516745 (patch)
tree762d2fcf7d0c087413fe54897a63b6424aceef84
parent835d5247d98f46e35d007dcfa6215e526ca33360 (diff)
reiserfs: Fix mistake in down_write() conversion
Fix a mistake in commit 0719d3434747889b314a1e8add776418c4148bcf (reiserfs: Fix reiserfs lock <-> i_xattr_sem dependency inversion) that has converted a down_write() into a down_read() accidentally. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Christian Kujau <lists@nerdbynature.de> Cc: Alexander Beregalov <a.beregalov@gmail.com> Cc: Chris Mason <chris.mason@oracle.com> Cc: Ingo Molnar <mingo@elte.hu>
-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 9623cfe2371c..75d3706734ec 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -495,7 +495,7 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
495 return PTR_ERR(dentry); 495 return PTR_ERR(dentry);
496 } 496 }
497 497
498 down_read(&REISERFS_I(inode)->i_xattr_sem); 498 down_write(&REISERFS_I(inode)->i_xattr_sem);
499 499
500 reiserfs_write_lock(inode->i_sb); 500 reiserfs_write_lock(inode->i_sb);
501 501