Lines Matching defs:btrfs_space_info
101 struct btrfs_space_info { struct
102 struct btrfs_fs_info *fs_info;
103 spinlock_t lock;
105 u64 total_bytes; /* total bytes in the space,
107 u64 bytes_used; /* total bytes used,
109 u64 bytes_pinned; /* total bytes pinned, will be freed when the
111 u64 bytes_reserved; /* total bytes the allocator has reserved for
113 u64 bytes_may_use; /* number of bytes that may be used for
115 u64 bytes_readonly; /* total bytes that are read only */
116 u64 bytes_zone_unusable; /* total bytes that are unusable until
119 u64 max_extent_size; /* This will hold the maximum extent size of
123 u64 chunk_size;
129 int bg_reclaim_threshold;
131 int clamp; /* Used to scale our threshold for preemptive
135 unsigned int full:1; /* indicates that we cannot allocate any more
137 unsigned int chunk_alloc:1; /* set if we are allocating a chunk */
139 unsigned int flush:1; /* set if we are trying to make space */
141 unsigned int force_alloc; /* set if we need to force a chunk
144 u64 disk_used; /* total bytes used on disk */
145 u64 disk_total; /* total bytes on disk, takes mirrors into
148 u64 flags;
150 struct list_head list;
152 struct list_head ro_bgs;
153 struct list_head priority_tickets;
154 struct list_head tickets;
160 u64 reclaim_size;
166 u64 tickets_id;
168 struct rw_semaphore groups_sem;
170 struct list_head block_groups[BTRFS_NR_RAID_TYPES];
172 struct kobject kobj;
173 struct kobject *block_group_kobjs[BTRFS_NR_RAID_TYPES];
179 u64 reclaim_count;
185 u64 reclaim_bytes;
191 u64 reclaim_errors;
197 bool dynamic_reclaim;
225 static inline bool btrfs_mixed_space_info(const struct btrfs_space_info *space_info) in btrfs_mixed_space_info() argument