diff options
author | David Sterba <dsterba@suse.com> | 2018-05-07 18:44:03 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 19:07:30 +0300 |
commit | 6fcf6e2bffb6cfe26f05795f4fba4e6bb6aa84bf (patch) | |
tree | fbd966ec61b0201799eca513bcc64a81fb6f3309 /fs/btrfs/ioctl.c | |
parent | c9f6f3cd1c6fc4df959ce2bce15e5e6ce660bfd4 (diff) | |
download | linux-6fcf6e2bffb6cfe26f05795f4fba4e6bb6aa84bf.tar.xz |
btrfs: remove redundant btrfs_balance_control::fs_info
The fs_info is always available from the context so we don't need to
store it in the structure.
Reviewed-by: Anand Jain <anand.jain@oracle.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 b708f12292b6..48e2ddff32bd 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -4428,7 +4428,6 @@ locked: goto out_bargs; } - bctl->fs_info = fs_info; if (arg) { memcpy(&bctl->data, &bargs->data, sizeof(bctl->data)); memcpy(&bctl->meta, &bargs->meta, sizeof(bctl->meta)); @@ -4454,7 +4453,7 @@ do_balance: */ need_unlock = false; - ret = btrfs_balance(bctl, bargs); + ret = btrfs_balance(fs_info, bctl, bargs); bctl = NULL; if (arg) { |