diff options
author | David Sterba <dsterba@suse.com> | 2018-04-04 03:00:17 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:27 +0300 |
commit | 300aa896e1199bcd0dfb61aae86356714e017355 (patch) | |
tree | 00235669e8fac6f0f87c1293ab56cc015a9cf7c6 /fs/btrfs/locking.h | |
parent | aa12c02778a9719283fc3c32cfe5cffb902a7685 (diff) | |
download | linux-300aa896e1199bcd0dfb61aae86356714e017355.tar.xz |
btrfs: replace btrfs_set_lock_blocking_rw with appropriate helpers
We can use the right helper where the lock type is a fixed parameter.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/locking.h')
-rw-r--r-- | fs/btrfs/locking.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/locking.h b/fs/btrfs/locking.h index 3f81d6900c71..9d9f649e35cc 100644 --- a/fs/btrfs/locking.h +++ b/fs/btrfs/locking.h @@ -53,7 +53,7 @@ static inline void btrfs_set_lock_blocking_rw(struct extent_buffer *eb, int rw) static inline void btrfs_set_lock_blocking(struct extent_buffer *eb) { - btrfs_set_lock_blocking_rw(eb, BTRFS_WRITE_LOCK); + btrfs_set_lock_blocking_write(eb); } #endif |