diff options
author | David Sterba <dsterba@suse.com> | 2018-04-03 20:03:48 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 08:13:27 -0500 |
commit | 8bead258206f4d4f485ad55bc1e39d23bbfe2fdd (patch) | |
tree | 71316678ac95c2e957ce80502db8f527067c0672 /fs/btrfs/tree-log.c | |
parent | 300aa896e1199bcd0dfb61aae86356714e017355 (diff) |
btrfs: open code now trivial btrfs_set_lock_blocking
btrfs_set_lock_blocking is now only a simple wrapper around
btrfs_set_lock_blocking_write. The name does not bring any semantic
value that could not be inferred from the new function so there's no
point keeping it.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index ac232b3d6d7e..1a69a45ae926 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2663,7 +2663,7 @@ static noinline int walk_down_log_tree(struct btrfs_trans_handle *trans, | |||
2663 | 2663 | ||
2664 | if (trans) { | 2664 | if (trans) { |
2665 | btrfs_tree_lock(next); | 2665 | btrfs_tree_lock(next); |
2666 | btrfs_set_lock_blocking(next); | 2666 | btrfs_set_lock_blocking_write(next); |
2667 | clean_tree_block(fs_info, next); | 2667 | clean_tree_block(fs_info, next); |
2668 | btrfs_wait_tree_block_writeback(next); | 2668 | btrfs_wait_tree_block_writeback(next); |
2669 | btrfs_tree_unlock(next); | 2669 | btrfs_tree_unlock(next); |
@@ -2747,7 +2747,7 @@ static noinline int walk_up_log_tree(struct btrfs_trans_handle *trans, | |||
2747 | 2747 | ||
2748 | if (trans) { | 2748 | if (trans) { |
2749 | btrfs_tree_lock(next); | 2749 | btrfs_tree_lock(next); |
2750 | btrfs_set_lock_blocking(next); | 2750 | btrfs_set_lock_blocking_write(next); |
2751 | clean_tree_block(fs_info, next); | 2751 | clean_tree_block(fs_info, next); |
2752 | btrfs_wait_tree_block_writeback(next); | 2752 | btrfs_wait_tree_block_writeback(next); |
2753 | btrfs_tree_unlock(next); | 2753 | btrfs_tree_unlock(next); |
@@ -2829,7 +2829,7 @@ static int walk_log_tree(struct btrfs_trans_handle *trans, | |||
2829 | 2829 | ||
2830 | if (trans) { | 2830 | if (trans) { |
2831 | btrfs_tree_lock(next); | 2831 | btrfs_tree_lock(next); |
2832 | btrfs_set_lock_blocking(next); | 2832 | btrfs_set_lock_blocking_write(next); |
2833 | clean_tree_block(fs_info, next); | 2833 | clean_tree_block(fs_info, next); |
2834 | btrfs_wait_tree_block_writeback(next); | 2834 | btrfs_wait_tree_block_writeback(next); |
2835 | btrfs_tree_unlock(next); | 2835 | btrfs_tree_unlock(next); |