]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup the locking in btrfs_next_old_leaf
authorJosef Bacik <josef@toxicpanda.com>
Fri, 6 Nov 2020 21:27:29 +0000 (16:27 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:09 +0000 (15:54 +0100)
commit33f94b39be5e6227fe551597b417b1ac285862fb
treeeb17a367e927525f16a9b81783c45b7665568bb5
parent750b60af0bd5e77c1f50adae594a1cfd371da73f
btrfs: cleanup the locking in btrfs_next_old_leaf

We are carrying around this next_rw_lock from when we would do spinning
vs blocking read locks.  Now that we have the rwsem locking we can
simply use the read lock flag unconditionally and the read lock helpers.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c