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>
This commit is contained in:
Nikolay Borisov
2020-12-07 17:32:33 +02:00
committed by David Sterba
parent 453e487386
commit 543068a217
7 changed files with 12 additions and 12 deletions

View File

@@ -3434,7 +3434,7 @@ struct inode *create_reloc_inode(struct btrfs_fs_info *fs_info,
return ERR_CAST(trans);
}
err = btrfs_find_free_objectid(root, &objectid);
err = btrfs_get_free_objectid(root, &objectid);
if (err)
goto out;