summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorLu Fengqi2018-08-01 05:32:29 +0200
committerDavid Sterba2018-08-06 13:13:00 +0200
commit6025c19fb208e93b99eafc304e7f16160e49fc88 (patch)
tree6a0b47ea03d36720cb508b24b958c2b20a5d6938 /fs/btrfs/inode.c
parentbtrfs: Remove fs_info from btrfs_del_root_ref (diff)
downloadkernel-qcow2-linux-6025c19fb208e93b99eafc304e7f16160e49fc88.tar.gz
kernel-qcow2-linux-6025c19fb208e93b99eafc304e7f16160e49fc88.tar.xz
kernel-qcow2-linux-6025c19fb208e93b99eafc304e7f16160e49fc88.zip
btrfs: Remove fs_info from btrfs_add_root_ref
It can be referenced from the passed transaction handle. Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 7bf4a8d07e1e..407d068d4208 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6385,7 +6385,6 @@ int btrfs_add_link(struct btrfs_trans_handle *trans,
struct btrfs_inode *parent_inode, struct btrfs_inode *inode,
const char *name, int name_len, int add_backref, u64 index)
{
- struct btrfs_fs_info *fs_info = trans->fs_info;
int ret = 0;
struct btrfs_key key;
struct btrfs_root *root = parent_inode->root;
@@ -6401,7 +6400,7 @@ int btrfs_add_link(struct btrfs_trans_handle *trans,
}
if (unlikely(ino == BTRFS_FIRST_FREE_OBJECTID)) {
- ret = btrfs_add_root_ref(trans, fs_info, key.objectid,
+ ret = btrfs_add_root_ref(trans, key.objectid,
root->root_key.objectid, parent_ino,
index, name, name_len);
} else if (add_backref) {