mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
835d5247d9
commit
f3e22f48f3
@ -495,7 +495,7 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
|
||||
return PTR_ERR(dentry);
|
||||
}
|
||||
|
||||
down_read(&REISERFS_I(inode)->i_xattr_sem);
|
||||
down_write(&REISERFS_I(inode)->i_xattr_sem);
|
||||
|
||||
reiserfs_write_lock(inode->i_sb);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user