Lines Matching defs:space
49 #include "space-info.h"
50 #include "delalloc-space.h"
493 * btrfs_trim_block_group() depends on space cache, which is not
502 * mounted in RO mode as well, we can not allow discard on free space
504 * pinned in a block group's free space cache (pinning the extents is
528 * block group is in the logical address space, which can be any
708 * tree block so that we don't leak space and leave the
1024 * Force new buffered writes to reserve space even when NOCOW is
1059 * return BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS to user space
2980 struct btrfs_ioctl_space_info *space)
2984 space->total_bytes = 0;
2985 space->used_bytes = 0;
2986 space->flags = 0;
2988 space->flags = block_group->flags;
2989 space->total_bytes += block_group->length;
2990 space->used_bytes += block_group->used;
2998 struct btrfs_ioctl_space_info space;
3057 /* we generally have at most 6 or so space infos, one for each raid
3090 &space);
3091 memcpy(dest, &space, sizeof(space));
3109 space.total_bytes = block_rsv->size;
3110 space.used_bytes = block_rsv->size - block_rsv->reserved;
3112 space.flags = BTRFS_SPACE_INFO_GLOBAL_RSV;
3113 memcpy(dest, &space, sizeof(space));
3209 * Copy scrub args to user space even if btrfs_scrub_dev() returned an
3210 * error. This is important as it allows user space to know how much
3213 * space. Later user space can inspect the progress from the structure
3216 * If we fail to copy the btrfs_ioctl_scrub_args structure to user space