Home
last modified time | relevance | path

Searched refs:bctl (Results 1 – 4 of 4) sorted by relevance

/fs/btrfs/
Dvolumes.c3449 struct btrfs_balance_control *bctl) in insert_balance_item() argument
3484 btrfs_cpu_balance_args_to_disk(&disk_bargs, &bctl->data); in insert_balance_item()
3486 btrfs_cpu_balance_args_to_disk(&disk_bargs, &bctl->meta); in insert_balance_item()
3488 btrfs_cpu_balance_args_to_disk(&disk_bargs, &bctl->sys); in insert_balance_item()
3491 btrfs_set_balance_flags(leaf, item, bctl->flags); in insert_balance_item()
3545 static void update_balance_args(struct btrfs_balance_control *bctl) in update_balance_args() argument
3550 if (bctl->data.flags & BTRFS_BALANCE_ARGS_CONVERT) in update_balance_args()
3551 bctl->data.flags |= BTRFS_BALANCE_ARGS_SOFT; in update_balance_args()
3552 if (bctl->sys.flags & BTRFS_BALANCE_ARGS_CONVERT) in update_balance_args()
3553 bctl->sys.flags |= BTRFS_BALANCE_ARGS_SOFT; in update_balance_args()
[all …]
Dioctl.c4008 struct btrfs_balance_control *bctl = fs_info->balance_ctl; in btrfs_update_ioctl_balance_args() local
4010 bargs->flags = bctl->flags; in btrfs_update_ioctl_balance_args()
4019 memcpy(&bargs->data, &bctl->data, sizeof(bargs->data)); in btrfs_update_ioctl_balance_args()
4020 memcpy(&bargs->meta, &bctl->meta, sizeof(bargs->meta)); in btrfs_update_ioctl_balance_args()
4021 memcpy(&bargs->sys, &bctl->sys, sizeof(bargs->sys)); in btrfs_update_ioctl_balance_args()
4024 memcpy(&bargs->stat, &bctl->stat, sizeof(bargs->stat)); in btrfs_update_ioctl_balance_args()
4033 struct btrfs_balance_control *bctl; in btrfs_ioctl_balance() local
4105 bctl = fs_info->balance_ctl; in btrfs_ioctl_balance()
4107 bctl->flags |= BTRFS_BALANCE_RESUME; in btrfs_ioctl_balance()
4121 bctl = kzalloc(sizeof(*bctl), GFP_KERNEL); in btrfs_ioctl_balance()
[all …]
Dblock-group.c28 struct btrfs_balance_control *bctl = fs_info->balance_ctl; in get_restripe_target() local
31 if (!bctl) in get_restripe_target()
35 bctl->data.flags & BTRFS_BALANCE_ARGS_CONVERT) { in get_restripe_target()
36 target = BTRFS_BLOCK_GROUP_DATA | bctl->data.target; in get_restripe_target()
38 bctl->sys.flags & BTRFS_BALANCE_ARGS_CONVERT) { in get_restripe_target()
39 target = BTRFS_BLOCK_GROUP_SYSTEM | bctl->sys.target; in get_restripe_target()
41 bctl->meta.flags & BTRFS_BALANCE_ARGS_CONVERT) { in get_restripe_target()
42 target = BTRFS_BLOCK_GROUP_METADATA | bctl->meta.target; in get_restripe_target()
Dvolumes.h526 struct btrfs_balance_control *bctl,