Lines Matching refs:btrfs_root

1269 	struct btrfs_root *root;
1390 struct btrfs_root *extent_root;
1391 struct btrfs_root *tree_root;
1392 struct btrfs_root *chunk_root;
1393 struct btrfs_root *dev_root;
1394 struct btrfs_root *fs_root;
1395 struct btrfs_root *csum_root;
1396 struct btrfs_root *quota_root;
1397 struct btrfs_root *uuid_root;
1400 struct btrfs_root *log_root_tree;
1824 struct btrfs_root { struct
1828 struct btrfs_root *log_root; argument
1829 struct btrfs_root *reloc_root; argument
2908 static inline bool btrfs_root_readonly(struct btrfs_root *root) in btrfs_root_readonly()
2913 static inline bool btrfs_root_dead(struct btrfs_root *root) in btrfs_root_dead()
3331 u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes);
3333 static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root, in btrfs_calc_trans_metadata_size()
3344 static inline u64 btrfs_calc_trunc_metadata_size(struct btrfs_root *root, in btrfs_calc_trunc_metadata_size()
3351 struct btrfs_root *root);
3353 struct btrfs_root *root);
3356 struct btrfs_root *root, unsigned long count);
3357 int btrfs_async_run_delayed_refs(struct btrfs_root *root,
3359 int btrfs_lookup_data_extent(struct btrfs_root *root, u64 start, u64 len);
3361 struct btrfs_root *root, u64 bytenr,
3363 int btrfs_pin_extent(struct btrfs_root *root,
3365 int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
3367 int btrfs_exclude_logged_extents(struct btrfs_root *root,
3370 struct btrfs_root *root,
3378 struct btrfs_root *root, u64 parent,
3383 struct btrfs_root *root,
3387 struct btrfs_root *root,
3391 struct btrfs_root *root,
3394 int btrfs_reserve_extent(struct btrfs_root *root, u64 num_bytes,
3397 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3399 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3402 struct btrfs_root *root,
3406 struct btrfs_root *root,
3410 int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len,
3412 int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root,
3415 struct btrfs_root *root);
3417 struct btrfs_root *root);
3419 struct btrfs_root *root,
3424 struct btrfs_root *root);
3426 struct btrfs_root *root);
3428 struct btrfs_root *root);
3429 int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr);
3431 int btrfs_read_block_groups(struct btrfs_root *root);
3432 int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr);
3434 struct btrfs_root *root, u64 bytes_used,
3438 struct btrfs_root *root, u64 group_start,
3442 struct btrfs_root *root);
3443 u64 btrfs_get_alloc_profile(struct btrfs_root *root, int data);
3460 struct btrfs_root *root);
3464 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
3468 void btrfs_subvolume_release_metadata(struct btrfs_root *root,
3476 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root,
3478 void btrfs_free_block_rsv(struct btrfs_root *root,
3481 int btrfs_block_rsv_add(struct btrfs_root *root,
3484 int btrfs_block_rsv_check(struct btrfs_root *root,
3486 int btrfs_block_rsv_refill(struct btrfs_root *root,
3495 void btrfs_block_rsv_release(struct btrfs_root *root,
3498 int btrfs_set_block_group_ro(struct btrfs_root *root,
3500 void btrfs_set_block_group_rw(struct btrfs_root *root,
3504 int btrfs_error_unpin_extent_range(struct btrfs_root *root,
3506 int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
3509 struct btrfs_root *root, u64 type);
3510 int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range);
3516 int btrfs_start_write_no_snapshoting(struct btrfs_root *root);
3517 void btrfs_end_write_no_snapshoting(struct btrfs_root *root);
3522 int btrfs_previous_item(struct btrfs_root *root,
3525 int btrfs_previous_extent_item(struct btrfs_root *root,
3530 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
3531 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
3532 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
3535 int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key,
3544 typedef int (*btrfs_changed_cb_t)(struct btrfs_root *left_root,
3545 struct btrfs_root *right_root,
3551 int btrfs_compare_trees(struct btrfs_root *left_root,
3552 struct btrfs_root *right_root,
3555 struct btrfs_root *root, struct extent_buffer *buf,
3559 struct btrfs_root *root,
3562 int btrfs_block_can_be_shared(struct btrfs_root *root,
3564 void btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
3566 void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
3569 struct btrfs_root *root,
3574 struct btrfs_root *root,
3577 int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path,
3579 int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
3582 int btrfs_search_old_slot(struct btrfs_root *root, struct btrfs_key *key,
3584 int btrfs_search_slot_for_read(struct btrfs_root *root,
3588 struct btrfs_root *root, struct extent_buffer *parent,
3599 int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3602 struct btrfs_root *root, in btrfs_del_item()
3608 void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
3611 int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
3614 struct btrfs_root *root,
3619 struct btrfs_root *root, in btrfs_insert_empty_item()
3627 int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
3628 int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
3629 int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
3631 static inline int btrfs_next_old_item(struct btrfs_root *root, in btrfs_next_old_item()
3639 static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p) in btrfs_next_item()
3643 int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
3644 int __must_check btrfs_drop_snapshot(struct btrfs_root *root,
3648 struct btrfs_root *root,
3665 static inline int btrfs_need_cleaner_sleep(struct btrfs_root *root) in btrfs_need_cleaner_sleep()
3693 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
3696 int btrfs_find_root_ref(struct btrfs_root *tree_root,
3700 struct btrfs_root *tree_root,
3704 struct btrfs_root *tree_root,
3707 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3709 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root
3713 struct btrfs_root *root,
3716 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key,
3719 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
3724 struct btrfs_root *root);
3728 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
3731 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
3738 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
3741 struct btrfs_root *root, const char *name,
3745 struct btrfs_root *root,
3751 struct btrfs_root *root,
3756 btrfs_search_dir_index_item(struct btrfs_root *root,
3760 struct btrfs_root *root,
3764 struct btrfs_root *root,
3769 struct btrfs_root *root,
3773 int verify_dir_item(struct btrfs_root *root,
3776 struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root,
3783 struct btrfs_root *root, u64 offset);
3785 struct btrfs_root *root, u64 offset);
3786 int btrfs_find_orphan_item(struct btrfs_root *root, u64 offset);
3790 struct btrfs_root *root,
3794 struct btrfs_root *root,
3798 struct btrfs_root *root,
3800 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root
3806 struct btrfs_root *root,
3820 struct btrfs_root *root, u64 bytenr, u64 len);
3821 int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
3823 int btrfs_lookup_bio_sums_dio(struct btrfs_root *root, struct inode *inode,
3826 struct btrfs_root *root,
3832 struct btrfs_root *root,
3836 struct btrfs_root *root,
3838 int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode,
3840 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
3887 struct btrfs_root *root,
3894 struct btrfs_root *root,
3900 struct btrfs_root *root,
3904 int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput);
3910 struct btrfs_root *new_root,
3911 struct btrfs_root *parent_root,
3927 struct btrfs_root *root, int *was_new);
3932 struct btrfs_root *root,
3935 struct btrfs_root *root, struct inode *inode);
3937 int btrfs_orphan_cleanup(struct btrfs_root *root);
3939 struct btrfs_root *root);
3941 void btrfs_invalidate_inodes(struct btrfs_root *root);
3943 void btrfs_run_delayed_iputs(struct btrfs_root *root);
3984 struct btrfs_root *root, struct inode *inode,
3991 struct btrfs_root *root, struct inode *inode, u64 start,
3996 int btrfs_dirty_pages(struct btrfs_root *root, struct inode *inode,
4004 struct btrfs_root *root);
4016 int btrfs_parse_options(struct btrfs_root *root, char *options);
4074 struct btrfs_root *root, const char *function,
4166 int btrfs_relocate_block_group(struct btrfs_root *root, u64 group_start);
4168 struct btrfs_root *root);
4170 struct btrfs_root *root);
4171 int btrfs_recover_relocation(struct btrfs_root *root);
4174 struct btrfs_root *root, struct extent_buffer *buf,
4186 void btrfs_scrub_pause(struct btrfs_root *root);
4187 void btrfs_scrub_continue(struct btrfs_root *root);
4191 int btrfs_scrub_progress(struct btrfs_root *root, u64 devid,
4206 struct btrfs_root *root; /* tree to prefetch */
4213 struct reada_control *btrfs_reada_add(struct btrfs_root *root,
4217 int btree_readahead_hook(struct btrfs_root *root, struct extent_buffer *eb,
4239 static inline int btrfs_test_is_dummy_root(struct btrfs_root *root) in btrfs_test_is_dummy_root()