fs: rename buffer trylock
Like the page lock change, this also requires name change, so convert the raw test_and_set bitop to a trylock. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
529ae9aaa0
commit
ca5de404ff
@@ -1104,7 +1104,7 @@ xfs_page_state_convert(
|
||||
* that we are writing into for the first time.
|
||||
*/
|
||||
type = IOMAP_NEW;
|
||||
if (!test_and_set_bit(BH_Lock, &bh->b_state)) {
|
||||
if (trylock_buffer(bh)) {
|
||||
ASSERT(buffer_mapped(bh));
|
||||
if (iomap_valid)
|
||||
all_bh = 1;
|
||||
|
Reference in New Issue
Block a user