]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: merge btrfs_set_lock_blocking_rw with it's caller
authorDavid Sterba <dsterba@suse.com>
Wed, 23 Jan 2019 17:07:14 +0000 (18:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:28 +0000 (14:13 +0100)
commit766ece54f4c9c29b25eabd091a2ee939feb1669e
treee600cdb57da7810436ca26bfbc5b7be66925ecf6
parent970e74d961db61eed18e33d8ecd644ee8ef7da04
btrfs: merge btrfs_set_lock_blocking_rw with it's caller

The last caller that does not have a fixed value of lock is
btrfs_set_path_blocking, that actually does the same conditional swtich
by the lock type so we can merge the branches together and remove the
helper.

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