aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-12-07 17:32:33 +0200
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:49 +0100
commit543068a217a877bb6fa831fc448c9cc131db4feb (patch)
tree4f3dc31062d06d6fd3f3610501dfa87d1ede8cf9 /fs/btrfs/transaction.c
parentbtrfs: rename btrfs_find_highest_objectid to btrfs_init_root_free_objectid (diff)
downloadlinux-dev-543068a217a877bb6fa831fc448c9cc131db4feb.tar.xz
linux-dev-543068a217a877bb6fa831fc448c9cc131db4feb.zip
btrfs: rename btrfs_find_free_objectid to btrfs_get_free_objectid
This better reflects the semantics of the function i.e no search is performed whatsoever. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> 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 fbf93067642a..3bcb5444536e 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1526,7 +1526,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans,
ASSERT(pending->root_item);
new_root_item = pending->root_item;
- pending->error = btrfs_find_free_objectid(tree_root, &objectid);
+ pending->error = btrfs_get_free_objectid(tree_root, &objectid);
if (pending->error)
goto no_free_objectid;