]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: open code btrfs_dev_replace_clear_lock_blocking
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 15:33:58 +0000 (17:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:37 +0000 (17:23 +0200)
commit1ebc48f3b51d2cccb0fa58a937b60fdb1cd44220
tree3b500f98ec26bd8989c81ab8bfdb506ced9937d7
parent69fd6586c2f6b1fa328e1d3df8c088ff15a4de90
btrfs: open code btrfs_dev_replace_clear_lock_blocking

There's a single caller and the function name does not say it's actually
taking the lock, so open coding makes it more explicit.

For now, btrfs_dev_replace_read_lock is used instead of read_lock so
it's paired with the unlocking wrapper in the same block.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/dev-replace.h
fs/btrfs/volumes.c