summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-08-24 17:33:58 +0200
committerDavid Sterba <dsterba@suse.com>2018-10-15 17:23:37 +0200
commit7fb2eced105f67676eb86473d5b1ce6a96f6eab4 (patch)
tree3b500f98ec26bd8989c81ab8bfdb506ced9937d7 /fs/btrfs/dev-replace.h
parent3280f874576d31b03fe19cbcc23585d96feb4ceb (diff)
downloadlinux-7fb2eced105f67676eb86473d5b1ce6a96f6eab4.tar.bz2
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>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
-rw-r--r--fs/btrfs/dev-replace.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.h b/fs/btrfs/dev-replace.h
index b6d4206188bb..39f022c457ff 100644
--- a/fs/btrfs/dev-replace.h
+++ b/fs/btrfs/dev-replace.h
@@ -28,8 +28,6 @@ void btrfs_dev_replace_read_unlock(struct btrfs_dev_replace *dev_replace);
void btrfs_dev_replace_write_lock(struct btrfs_dev_replace *dev_replace);
void btrfs_dev_replace_write_unlock(struct btrfs_dev_replace *dev_replace);
void btrfs_dev_replace_set_lock_blocking(struct btrfs_dev_replace *dev_replace);
-void btrfs_dev_replace_clear_lock_blocking(
- struct btrfs_dev_replace *dev_replace);
static inline void btrfs_dev_replace_stats_inc(atomic64_t *stat_value)
{