]> git.baikalelectronics.ru Git - kernel.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)
commitfe5b275f67c22672a6494042c13ad1eff10e8c96
treee600cdb57da7810436ca26bfbc5b7be66925ecf6
parent341907c2d09c8893bfcf3f767f5d430132815c03
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