Lines Matching defs:arg
8071 long btrfs_ioctl_send(struct inode *inode, struct btrfs_ioctl_send_args *arg)
8117 if (arg->clone_sources_count > SZ_8M / sizeof(struct clone_root)) {
8122 if (arg->flags & ~BTRFS_SEND_FLAG_MASK) {
8152 sctx->flags = arg->flags;
8154 if (arg->flags & BTRFS_SEND_FLAG_VERSION) {
8155 if (arg->version > BTRFS_SEND_STREAM_VERSION) {
8160 sctx->proto = arg->version ?: BTRFS_SEND_STREAM_VERSION;
8164 if ((arg->flags & BTRFS_SEND_FLAG_COMPRESSED) && sctx->proto < 2) {
8169 sctx->send_filp = fget(arg->send_fd);
8185 sctx->clone_roots_cnt = arg->clone_sources_count;
8218 arg->clone_sources_count + 1,
8225 alloc_size = array_size(sizeof(*arg->clone_sources),
8226 arg->clone_sources_count);
8228 if (arg->clone_sources_count) {
8235 ret = copy_from_user(clone_sources_tmp, arg->clone_sources,
8242 for (i = 0; i < arg->clone_sources_count; i++) {
8274 if (arg->parent_root) {
8275 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root,