Lines Matching defs:btrfs_root
168 struct btrfs_root { struct
174 struct btrfs_root *log_root; argument
175 struct btrfs_root *reloc_root; argument
178 struct btrfs_root_item root_item; argument
179 struct btrfs_key root_key;
180 struct btrfs_fs_info *fs_info;
181 struct extent_io_tree dirty_log_pages;
183 struct mutex objectid_mutex;
185 spinlock_t accounting_lock;
186 struct btrfs_block_rsv *block_rsv;
188 struct mutex log_mutex;
189 wait_queue_head_t log_writer_wait;
190 wait_queue_head_t log_commit_wait[2];
191 struct list_head log_ctxs[2];
193 atomic_t log_writers;
194 atomic_t log_commit[2];
196 atomic_t log_batch;
205 int log_transid;
207 int log_transid_committed;
213 int last_log_commit;
214 pid_t log_start_pid;
216 u64 last_trans;
218 u64 free_objectid;
220 struct btrfs_key defrag_progress;
221 struct btrfs_key defrag_max;
224 struct list_head dirty_list;
226 struct list_head root_list;
232 struct xarray inodes;
238 struct xarray delayed_nodes;
243 dev_t anon_dev;
245 spinlock_t root_item_lock;
246 refcount_t refs;
248 struct mutex delalloc_mutex;
249 spinlock_t delalloc_lock;
255 struct list_head delalloc_inodes;
256 struct list_head delalloc_root;
257 u64 nr_delalloc_inodes;
259 struct mutex ordered_extent_mutex;
264 spinlock_t ordered_extent_lock;
271 struct list_head ordered_extents;
272 struct list_head ordered_root;
273 u64 nr_ordered_extents;
281 struct list_head reloc_dirty_list;
287 int send_in_progress;
293 int dedupe_in_progress;
295 struct btrfs_drew_lock snapshot_lock;
297 atomic_t snapshot_force_cow;
300 spinlock_t qgroup_meta_rsv_lock;
301 u64 qgroup_meta_rsv_pertrans;
302 u64 qgroup_meta_rsv_prealloc;
326 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly() argument