diff options
author | David Sterba <dsterba@suse.com> | 2018-05-07 11:44:03 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 12:07:30 -0400 |
commit | 6fcf6e2bffb6cfe26f05795f4fba4e6bb6aa84bf (patch) | |
tree | fbd966ec61b0201799eca513bcc64a81fb6f3309 /fs/btrfs/volumes.h | |
parent | c9f6f3cd1c6fc4df959ce2bce15e5e6ce660bfd4 (diff) |
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/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 39787a2f5fb4..5139ec8daf4c 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -352,8 +352,6 @@ struct map_lookup { | |||
352 | struct btrfs_balance_args; | 352 | struct btrfs_balance_args; |
353 | struct btrfs_balance_progress; | 353 | struct btrfs_balance_progress; |
354 | struct btrfs_balance_control { | 354 | struct btrfs_balance_control { |
355 | struct btrfs_fs_info *fs_info; | ||
356 | |||
357 | struct btrfs_balance_args data; | 355 | struct btrfs_balance_args data; |
358 | struct btrfs_balance_args meta; | 356 | struct btrfs_balance_args meta; |
359 | struct btrfs_balance_args sys; | 357 | struct btrfs_balance_args sys; |
@@ -432,7 +430,8 @@ struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, | |||
432 | u8 *uuid, u8 *fsid); | 430 | u8 *uuid, u8 *fsid); |
433 | int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); | 431 | int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); |
434 | int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *path); | 432 | int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *path); |
435 | int btrfs_balance(struct btrfs_balance_control *bctl, | 433 | int btrfs_balance(struct btrfs_fs_info *fs_info, |
434 | struct btrfs_balance_control *bctl, | ||
436 | struct btrfs_ioctl_balance_args *bargs); | 435 | struct btrfs_ioctl_balance_args *bargs); |
437 | int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); | 436 | int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); |
438 | int btrfs_recover_balance(struct btrfs_fs_info *fs_info); | 437 | int btrfs_recover_balance(struct btrfs_fs_info *fs_info); |