H A D | volumes.c | 2942 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
|