Commit abadc1fc authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: replace calls to btrfs_find_free_ino with btrfs_find_free_objectid

The former is going away as part of the inode map removal so switch
callers to btrfs_find_free_objectid. No functional changes since with
INODE_MAP disabled (default) find_free_objectid was called anyway.
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ec7d6dfd
...@@ -6364,7 +6364,7 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry, ...@@ -6364,7 +6364,7 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry,
if (IS_ERR(trans)) if (IS_ERR(trans))
return PTR_ERR(trans); return PTR_ERR(trans);
err = btrfs_find_free_ino(root, &objectid); err = btrfs_find_free_objectid(root, &objectid);
if (err) if (err)
goto out_unlock; goto out_unlock;
...@@ -6428,7 +6428,7 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry, ...@@ -6428,7 +6428,7 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry,
if (IS_ERR(trans)) if (IS_ERR(trans))
return PTR_ERR(trans); return PTR_ERR(trans);
err = btrfs_find_free_ino(root, &objectid); err = btrfs_find_free_objectid(root, &objectid);
if (err) if (err)
goto out_unlock; goto out_unlock;
...@@ -6572,7 +6572,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) ...@@ -6572,7 +6572,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
if (IS_ERR(trans)) if (IS_ERR(trans))
return PTR_ERR(trans); return PTR_ERR(trans);
err = btrfs_find_free_ino(root, &objectid); err = btrfs_find_free_objectid(root, &objectid);
if (err) if (err)
goto out_fail; goto out_fail;
...@@ -9071,7 +9071,7 @@ static int btrfs_whiteout_for_rename(struct btrfs_trans_handle *trans, ...@@ -9071,7 +9071,7 @@ static int btrfs_whiteout_for_rename(struct btrfs_trans_handle *trans,
u64 objectid; u64 objectid;
u64 index; u64 index;
ret = btrfs_find_free_ino(root, &objectid); ret = btrfs_find_free_objectid(root, &objectid);
if (ret) if (ret)
return ret; return ret;
...@@ -9534,7 +9534,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, ...@@ -9534,7 +9534,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry,
if (IS_ERR(trans)) if (IS_ERR(trans))
return PTR_ERR(trans); return PTR_ERR(trans);
err = btrfs_find_free_ino(root, &objectid); err = btrfs_find_free_objectid(root, &objectid);
if (err) if (err)
goto out_unlock; goto out_unlock;
...@@ -9868,7 +9868,7 @@ static int btrfs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) ...@@ -9868,7 +9868,7 @@ static int btrfs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
if (IS_ERR(trans)) if (IS_ERR(trans))
return PTR_ERR(trans); return PTR_ERR(trans);
ret = btrfs_find_free_ino(root, &objectid); ret = btrfs_find_free_objectid(root, &objectid);
if (ret) if (ret)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment