Lines Matching defs:btrfs_space_info
108 struct btrfs_space_info { struct
110 struct btrfs_space_info *parent; argument
111 struct btrfs_space_info *sub_group[BTRFS_SPACE_INFO_SUB_GROUP_MAX]; argument
112 int subgroup_id;
113 spinlock_t lock;
115 u64 total_bytes; /* total bytes in the space,
117 u64 bytes_used; /* total bytes used,
119 u64 bytes_pinned; /* total bytes pinned, will be freed when the
121 u64 bytes_reserved; /* total bytes the allocator has reserved for
123 u64 bytes_may_use; /* number of bytes that may be used for
125 u64 bytes_readonly; /* total bytes that are read only */
126 u64 bytes_zone_unusable; /* total bytes that are unusable until
129 u64 max_extent_size; /* This will hold the maximum extent size of
133 u64 chunk_size;
139 int bg_reclaim_threshold;
141 int clamp; /* Used to scale our threshold for preemptive
145 unsigned int full:1; /* indicates that we cannot allocate any more
147 unsigned int chunk_alloc:1; /* set if we are allocating a chunk */
149 unsigned int flush:1; /* set if we are trying to make space */
151 unsigned int force_alloc; /* set if we need to force a chunk
154 u64 disk_used; /* total bytes used on disk */
155 u64 disk_total; /* total bytes on disk, takes mirrors into
158 u64 flags;
160 struct list_head list;
162 struct list_head ro_bgs;
163 struct list_head priority_tickets;
164 struct list_head tickets;
170 u64 reclaim_size;
176 u64 tickets_id;
178 struct rw_semaphore groups_sem;
180 struct list_head block_groups[BTRFS_NR_RAID_TYPES];
182 struct kobject kobj;
183 struct kobject *block_group_kobjs[BTRFS_NR_RAID_TYPES];
189 u64 reclaim_count;
195 u64 reclaim_bytes;
201 u64 reclaim_errors;
207 bool dynamic_reclaim;
235 static inline bool btrfs_mixed_space_info(const struct btrfs_space_info *space_info) in btrfs_mixed_space_info() argument