summaryrefslogtreecommitdiff
path: root/fs/btrfs/locking.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-04-04 03:00:17 +0300
committerDavid Sterba <dsterba@suse.com>2019-02-25 16:13:27 +0300
commit300aa896e1199bcd0dfb61aae86356714e017355 (patch)
tree00235669e8fac6f0f87c1293ab56cc015a9cf7c6 /fs/btrfs/locking.h
parentaa12c02778a9719283fc3c32cfe5cffb902a7685 (diff)
downloadlinux-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.h2
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