Searched refs:bargs (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/fs/btrfs/
H A Dioctl.c4470 struct btrfs_ioctl_balance_args *bargs) update_ioctl_balance_args()
4474 bargs->flags = bctl->flags; update_ioctl_balance_args()
4477 bargs->state |= BTRFS_BALANCE_STATE_RUNNING; update_ioctl_balance_args()
4479 bargs->state |= BTRFS_BALANCE_STATE_PAUSE_REQ; update_ioctl_balance_args()
4481 bargs->state |= BTRFS_BALANCE_STATE_CANCEL_REQ; update_ioctl_balance_args()
4483 memcpy(&bargs->data, &bctl->data, sizeof(bargs->data)); update_ioctl_balance_args()
4484 memcpy(&bargs->meta, &bctl->meta, sizeof(bargs->meta)); update_ioctl_balance_args()
4485 memcpy(&bargs->sys, &bctl->sys, sizeof(bargs->sys)); update_ioctl_balance_args()
4489 memcpy(&bargs->stat, &bctl->stat, sizeof(bargs->stat)); update_ioctl_balance_args()
4492 memcpy(&bargs->stat, &bctl->stat, sizeof(bargs->stat)); update_ioctl_balance_args()
4500 struct btrfs_ioctl_balance_args *bargs; btrfs_ioctl_balance() local
4562 bargs = memdup_user(arg, sizeof(*bargs)); btrfs_ioctl_balance()
4563 if (IS_ERR(bargs)) { btrfs_ioctl_balance()
4564 ret = PTR_ERR(bargs); btrfs_ioctl_balance()
4568 if (bargs->flags & BTRFS_BALANCE_RESUME) { btrfs_ioctl_balance()
4582 bargs = NULL; btrfs_ioctl_balance()
4598 memcpy(&bctl->data, &bargs->data, sizeof(bctl->data)); btrfs_ioctl_balance()
4599 memcpy(&bctl->meta, &bargs->meta, sizeof(bctl->meta)); btrfs_ioctl_balance()
4600 memcpy(&bctl->sys, &bargs->sys, sizeof(bctl->sys)); btrfs_ioctl_balance()
4602 bctl->flags = bargs->flags; btrfs_ioctl_balance()
4623 ret = btrfs_balance(bctl, bargs); btrfs_ioctl_balance()
4627 if (copy_to_user(arg, bargs, sizeof(*bargs))) btrfs_ioctl_balance()
4634 kfree(bargs); btrfs_ioctl_balance()
4664 struct btrfs_ioctl_balance_args *bargs; btrfs_ioctl_balance_progress() local
4676 bargs = kzalloc(sizeof(*bargs), GFP_NOFS); btrfs_ioctl_balance_progress()
4677 if (!bargs) { btrfs_ioctl_balance_progress()
4682 update_ioctl_balance_args(fs_info, 1, bargs); btrfs_ioctl_balance_progress()
4684 if (copy_to_user(arg, bargs, sizeof(*bargs))) btrfs_ioctl_balance_progress()
4687 kfree(bargs); btrfs_ioctl_balance_progress()
4469 update_ioctl_balance_args(struct btrfs_fs_info *fs_info, int lock, struct btrfs_ioctl_balance_args *bargs) update_ioctl_balance_args() argument
H A Dvolumes.c2942 struct btrfs_balance_args *bargs) chunk_profiles_filter()
2947 if (bargs->profiles & chunk_type) chunk_profiles_filter()
2954 struct btrfs_balance_args *bargs) chunk_usage_filter()
2963 if (bargs->usage == 0) chunk_usage_filter()
2965 else if (bargs->usage > 100) chunk_usage_filter()
2969 bargs->usage); chunk_usage_filter()
2980 struct btrfs_balance_args *bargs) chunk_devid_filter()
2988 if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) chunk_devid_filter()
2999 struct btrfs_balance_args *bargs) chunk_drange_filter()
3008 if (!(bargs->flags & BTRFS_BALANCE_ARGS_DEVID)) chunk_drange_filter()
3024 if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) chunk_drange_filter()
3031 if (stripe_offset < bargs->pend && chunk_drange_filter()
3032 stripe_offset + stripe_length > bargs->pstart) chunk_drange_filter()
3043 struct btrfs_balance_args *bargs) chunk_vrange_filter()
3045 if (chunk_offset < bargs->vend && chunk_vrange_filter()
3046 chunk_offset + btrfs_chunk_length(leaf, chunk) > bargs->vstart) chunk_vrange_filter()
3054 struct btrfs_balance_args *bargs) chunk_soft_convert_filter()
3056 if (!(bargs->flags & BTRFS_BALANCE_ARGS_CONVERT)) chunk_soft_convert_filter()
3062 if (bargs->target == chunk_type) chunk_soft_convert_filter()
3073 struct btrfs_balance_args *bargs = NULL; should_balance_chunk() local
3083 bargs = &bctl->data; should_balance_chunk()
3085 bargs = &bctl->sys; should_balance_chunk()
3087 bargs = &bctl->meta; should_balance_chunk()
3090 if ((bargs->flags & BTRFS_BALANCE_ARGS_PROFILES) && should_balance_chunk()
3091 chunk_profiles_filter(chunk_type, bargs)) { should_balance_chunk()
3096 if ((bargs->flags & BTRFS_BALANCE_ARGS_USAGE) && should_balance_chunk()
3097 chunk_usage_filter(bctl->fs_info, chunk_offset, bargs)) { should_balance_chunk()
3102 if ((bargs->flags & BTRFS_BALANCE_ARGS_DEVID) && should_balance_chunk()
3103 chunk_devid_filter(leaf, chunk, bargs)) { should_balance_chunk()
3108 if ((bargs->flags & BTRFS_BALANCE_ARGS_DRANGE) && should_balance_chunk()
3109 chunk_drange_filter(leaf, chunk, chunk_offset, bargs)) { should_balance_chunk()
3114 if ((bargs->flags & BTRFS_BALANCE_ARGS_VRANGE) && should_balance_chunk()
3115 chunk_vrange_filter(leaf, chunk, chunk_offset, bargs)) { should_balance_chunk()
3120 if ((bargs->flags & BTRFS_BALANCE_ARGS_SOFT) && should_balance_chunk()
3121 chunk_soft_convert_filter(chunk_type, bargs)) { should_balance_chunk()
3128 if ((bargs->flags & BTRFS_BALANCE_ARGS_LIMIT)) { should_balance_chunk()
3129 if (bargs->limit == 0) should_balance_chunk()
3132 bargs->limit--; should_balance_chunk()
3344 struct btrfs_ioctl_balance_args *bargs) btrfs_balance()
3505 if (bargs) { btrfs_balance()
3506 memset(bargs, 0, sizeof(*bargs)); btrfs_balance()
3507 update_ioctl_balance_args(fs_info, 0, bargs); btrfs_balance()
2941 chunk_profiles_filter(u64 chunk_type, struct btrfs_balance_args *bargs) chunk_profiles_filter() argument
2953 chunk_usage_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, struct btrfs_balance_args *bargs) chunk_usage_filter() argument
2978 chunk_devid_filter(struct extent_buffer *leaf, struct btrfs_chunk *chunk, struct btrfs_balance_args *bargs) chunk_devid_filter() argument
2996 chunk_drange_filter(struct extent_buffer *leaf, struct btrfs_chunk *chunk, u64 chunk_offset, struct btrfs_balance_args *bargs) chunk_drange_filter() argument
3040 chunk_vrange_filter(struct extent_buffer *leaf, struct btrfs_chunk *chunk, u64 chunk_offset, struct btrfs_balance_args *bargs) chunk_vrange_filter() argument
3053 chunk_soft_convert_filter(u64 chunk_type, struct btrfs_balance_args *bargs) chunk_soft_convert_filter() argument
3343 btrfs_balance(struct btrfs_balance_control *bctl, struct btrfs_ioctl_balance_args *bargs) btrfs_balance() argument
H A Dvolumes.h452 struct btrfs_ioctl_balance_args *bargs);
H A Dctree.h3969 struct btrfs_ioctl_balance_args *bargs);

Completed in 197 milliseconds