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
@@ -665,7 +665,7 @@ lock_retry_remap:
|
||||
for (i = 0; i < nr_bhs; i++) {
|
||||
struct buffer_head *tbh = bhs[i];
|
||||
|
||||
if (unlikely(test_set_buffer_locked(tbh)))
|
||||
if (!trylock_buffer(tbh))
|
||||
continue;
|
||||
if (unlikely(buffer_uptodate(tbh))) {
|
||||
unlock_buffer(tbh);
|
||||
|
||||
Reference in New Issue
Block a user