aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-04-04 02:03:48 +0200
committerDavid Sterba <dsterba@suse.com>2019-02-25 14:13:27 +0100
commit8bead258206f4d4f485ad55bc1e39d23bbfe2fdd (patch)
tree71316678ac95c2e957ce80502db8f527067c0672 /fs/btrfs/transaction.c
parentbtrfs: replace btrfs_set_lock_blocking_rw with appropriate helpers (diff)
downloadlinux-dev-8bead258206f4d4f485ad55bc1e39d23bbfe2fdd.tar.xz
linux-dev-8bead258206f4d4f485ad55bc1e39d23bbfe2fdd.zip
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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 0cc6d8b58191..acdad6d658f5 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1532,7 +1532,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans,
goto fail;
}
- btrfs_set_lock_blocking(old);
+ btrfs_set_lock_blocking_write(old);
ret = btrfs_copy_root(trans, root, old, &tmp, objectid);
/* clean up in any case */