]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: split btrfs_clear_lock_blocking_rw to read and write helpers
authorDavid Sterba <dsterba@suse.com>
Tue, 3 Apr 2018 23:52:31 +0000 (01:52 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:27 +0000 (14:13 +0100)
commit14fc2c6defa77c1e7a993e187e76ae53e40b7023
tree3e16f94482bf883da2f9ed4f0bac7bb4ea17d0d8
parent718f21c61bb7012ba5655bb07273b390a6947dcf
btrfs: split btrfs_clear_lock_blocking_rw to read and write helpers

There are many callers that hardcode the desired lock type so we can
avoid the switch and call them directly. Split the current function to
two. There are no remaining users of btrfs_clear_lock_blocking_rw so
it's removed.  The call sites will be converted in followup patches.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c
fs/btrfs/locking.h