diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-01 11:32:29 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:13:00 +0200 |
commit | 6025c19fb208e93b99eafc304e7f16160e49fc88 (patch) | |
tree | 6a0b47ea03d36720cb508b24b958c2b20a5d6938 /fs/btrfs/ioctl.c | |
parent | 3ee1c5530e649182e602eb2f81193289c4d2e655 (diff) | |
download | linux-stable-6025c19fb208e93b99eafc304e7f16160e49fc88.tar.gz linux-stable-6025c19fb208e93b99eafc304e7f16160e49fc88.tar.bz2 linux-stable-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/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 80fe3c654612..6eaadddaca9f 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -698,8 +698,7 @@ static noinline int create_subvol(struct inode *dir, ret = btrfs_update_inode(trans, root, dir); BUG_ON(ret); - ret = btrfs_add_root_ref(trans, fs_info, - objectid, root->root_key.objectid, + ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, btrfs_ino(BTRFS_I(dir)), index, name, namelen); BUG_ON(ret); |