Lines Matching defs:btrfs_space_info

96 struct btrfs_space_info {  struct
97 struct btrfs_fs_info *fs_info;
98 spinlock_t lock;
100 u64 total_bytes; /* total bytes in the space,
102 u64 bytes_used; /* total bytes used,
104 u64 bytes_pinned; /* total bytes pinned, will be freed when the
106 u64 bytes_reserved; /* total bytes the allocator has reserved for
108 u64 bytes_may_use; /* number of bytes that may be used for
110 u64 bytes_readonly; /* total bytes that are read only */
111 u64 bytes_zone_unusable; /* total bytes that are unusable until
114 u64 max_extent_size; /* This will hold the maximum extent size of
118 u64 chunk_size;
124 int bg_reclaim_threshold;
126 int clamp; /* Used to scale our threshold for preemptive
130 unsigned int full:1; /* indicates that we cannot allocate any more
132 unsigned int chunk_alloc:1; /* set if we are allocating a chunk */
134 unsigned int flush:1; /* set if we are trying to make space */
136 unsigned int force_alloc; /* set if we need to force a chunk
139 u64 disk_used; /* total bytes used on disk */
140 u64 disk_total; /* total bytes on disk, takes mirrors into
143 u64 flags;
145 struct list_head list;
147 struct list_head ro_bgs;
148 struct list_head priority_tickets;
149 struct list_head tickets;
155 u64 reclaim_size;
161 u64 tickets_id;
163 struct rw_semaphore groups_sem;
165 struct list_head block_groups[BTRFS_NR_RAID_TYPES];
167 struct kobject kobj;
168 struct kobject *block_group_kobjs[BTRFS_NR_RAID_TYPES];
174 u64 reclaim_count;
180 u64 reclaim_bytes;
186 u64 reclaim_errors;
192 bool dynamic_reclaim;
220 static inline bool btrfs_mixed_space_info(const struct btrfs_space_info *space_info) in btrfs_mixed_space_info() argument