Lines Matching refs:btrfs_root
1303 struct btrfs_root *root;
1424 struct btrfs_root *extent_root;
1425 struct btrfs_root *tree_root;
1426 struct btrfs_root *chunk_root;
1427 struct btrfs_root *dev_root;
1428 struct btrfs_root *fs_root;
1429 struct btrfs_root *csum_root;
1430 struct btrfs_root *quota_root;
1431 struct btrfs_root *uuid_root;
1434 struct btrfs_root *log_root_tree;
1851 struct btrfs_root { struct
1855 struct btrfs_root *log_root; argument
1856 struct btrfs_root *reloc_root; argument
2213 btrfs_should_fragment_free_space(struct btrfs_root *root, in btrfs_should_fragment_free_space()
2952 static inline bool btrfs_root_readonly(struct btrfs_root *root) in btrfs_root_readonly()
2957 static inline bool btrfs_root_dead(struct btrfs_root *root) in btrfs_root_dead()
3375 u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes);
3377 static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root, in btrfs_calc_trans_metadata_size()
3388 static inline u64 btrfs_calc_trunc_metadata_size(struct btrfs_root *root, in btrfs_calc_trunc_metadata_size()
3395 struct btrfs_root *root);
3397 struct btrfs_root *root);
3400 struct btrfs_root *root, unsigned long count);
3401 int btrfs_async_run_delayed_refs(struct btrfs_root *root,
3403 int btrfs_lookup_data_extent(struct btrfs_root *root, u64 start, u64 len);
3405 struct btrfs_root *root, u64 bytenr,
3407 int btrfs_pin_extent(struct btrfs_root *root,
3409 int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
3411 int btrfs_exclude_logged_extents(struct btrfs_root *root,
3414 struct btrfs_root *root,
3423 struct btrfs_root *root, u64 parent,
3428 struct btrfs_root *root,
3432 struct btrfs_root *root,
3437 struct btrfs_root *root,
3440 int btrfs_reserve_extent(struct btrfs_root *root, u64 num_bytes,
3443 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3445 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3448 struct btrfs_root *root,
3452 struct btrfs_root *root,
3456 int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len,
3458 int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root,
3461 struct btrfs_root *root);
3463 struct btrfs_root *root);
3465 struct btrfs_root *root,
3470 struct btrfs_root *root);
3472 struct btrfs_root *root);
3474 struct btrfs_root *root);
3475 int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr);
3477 int btrfs_read_block_groups(struct btrfs_root *root);
3478 int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr);
3480 struct btrfs_root *root, u64 bytes_used,
3487 struct btrfs_root *root, u64 group_start,
3493 struct btrfs_root *root);
3494 u64 btrfs_get_alloc_profile(struct btrfs_root *root, int data);
3514 struct btrfs_root *root);
3519 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
3523 void btrfs_subvolume_release_metadata(struct btrfs_root *root,
3531 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root,
3533 void btrfs_free_block_rsv(struct btrfs_root *root,
3536 int btrfs_block_rsv_add(struct btrfs_root *root,
3539 int btrfs_block_rsv_check(struct btrfs_root *root,
3541 int btrfs_block_rsv_refill(struct btrfs_root *root,
3550 void btrfs_block_rsv_release(struct btrfs_root *root,
3553 int btrfs_inc_block_group_ro(struct btrfs_root *root,
3555 void btrfs_dec_block_group_ro(struct btrfs_root *root,
3559 int btrfs_error_unpin_extent_range(struct btrfs_root *root,
3561 int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
3564 struct btrfs_root *root, u64 type);
3565 int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range);
3571 int btrfs_start_write_no_snapshoting(struct btrfs_root *root);
3572 void btrfs_end_write_no_snapshoting(struct btrfs_root *root);
3574 struct btrfs_root *root,
3580 int btrfs_previous_item(struct btrfs_root *root,
3583 int btrfs_previous_extent_item(struct btrfs_root *root,
3588 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
3589 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
3590 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
3593 int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key,
3602 typedef int (*btrfs_changed_cb_t)(struct btrfs_root *left_root,
3603 struct btrfs_root *right_root,
3609 int btrfs_compare_trees(struct btrfs_root *left_root,
3610 struct btrfs_root *right_root,
3613 struct btrfs_root *root, struct extent_buffer *buf,
3617 struct btrfs_root *root,
3620 int btrfs_block_can_be_shared(struct btrfs_root *root,
3622 void btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
3624 void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
3627 struct btrfs_root *root,
3632 struct btrfs_root *root,
3635 int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path,
3637 int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
3640 int btrfs_search_old_slot(struct btrfs_root *root, struct btrfs_key *key,
3642 int btrfs_search_slot_for_read(struct btrfs_root *root,
3646 struct btrfs_root *root, struct extent_buffer *parent,
3657 int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3660 struct btrfs_root *root, in btrfs_del_item()
3666 void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
3669 int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
3672 struct btrfs_root *root,
3677 struct btrfs_root *root, in btrfs_insert_empty_item()
3685 int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
3686 int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
3687 int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
3689 static inline int btrfs_next_old_item(struct btrfs_root *root, in btrfs_next_old_item()
3697 static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p) in btrfs_next_item()
3701 int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
3702 int __must_check btrfs_drop_snapshot(struct btrfs_root *root,
3706 struct btrfs_root *root,
3723 static inline int btrfs_need_cleaner_sleep(struct btrfs_root *root) in btrfs_need_cleaner_sleep()
3751 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
3754 int btrfs_find_root_ref(struct btrfs_root *tree_root,
3758 struct btrfs_root *tree_root,
3762 struct btrfs_root *tree_root,
3765 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3767 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root
3771 struct btrfs_root *root,
3774 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key,
3777 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
3782 struct btrfs_root *root);
3786 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
3789 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
3796 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
3799 struct btrfs_root *root, const char *name,
3803 struct btrfs_root *root,
3809 struct btrfs_root *root,
3814 btrfs_search_dir_index_item(struct btrfs_root *root,
3818 struct btrfs_root *root,
3822 struct btrfs_root *root,
3827 struct btrfs_root *root,
3831 int verify_dir_item(struct btrfs_root *root,
3834 struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root,
3841 struct btrfs_root *root, u64 offset);
3843 struct btrfs_root *root, u64 offset);
3844 int btrfs_find_orphan_item(struct btrfs_root *root, u64 offset);
3848 struct btrfs_root *root,
3852 struct btrfs_root *root,
3856 struct btrfs_root *root,
3858 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root
3864 struct btrfs_root *root,
3878 struct btrfs_root *root, u64 bytenr, u64 len);
3879 int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
3881 int btrfs_lookup_bio_sums_dio(struct btrfs_root *root, struct inode *inode,
3884 struct btrfs_root *root,
3890 struct btrfs_root *root,
3894 struct btrfs_root *root,
3896 int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode,
3898 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
3945 struct btrfs_root *root,
3952 struct btrfs_root *root,
3958 struct btrfs_root *root,
3962 int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput);
3968 struct btrfs_root *new_root,
3969 struct btrfs_root *parent_root,
3985 struct btrfs_root *root, int *was_new);
3990 struct btrfs_root *root,
3993 struct btrfs_root *root, struct inode *inode);
3995 int btrfs_orphan_cleanup(struct btrfs_root *root);
3997 struct btrfs_root *root);
3999 void btrfs_invalidate_inodes(struct btrfs_root *root);
4001 void btrfs_run_delayed_iputs(struct btrfs_root *root);
4041 struct btrfs_root *root, struct inode *inode,
4048 struct btrfs_root *root, struct inode *inode, u64 start,
4053 int btrfs_dirty_pages(struct btrfs_root *root, struct inode *inode,
4061 struct btrfs_root *root);
4073 int btrfs_parse_options(struct btrfs_root *root, char *options);
4223 struct btrfs_root *root, const char *function,
4315 int btrfs_relocate_block_group(struct btrfs_root *root, u64 group_start);
4317 struct btrfs_root *root);
4319 struct btrfs_root *root);
4320 int btrfs_recover_relocation(struct btrfs_root *root);
4323 struct btrfs_root *root, struct extent_buffer *buf,
4334 void btrfs_scrub_pause(struct btrfs_root *root);
4335 void btrfs_scrub_continue(struct btrfs_root *root);
4339 int btrfs_scrub_progress(struct btrfs_root *root, u64 devid,
4354 struct btrfs_root *root; /* tree to prefetch */
4361 struct reada_control *btrfs_reada_add(struct btrfs_root *root,
4365 int btree_readahead_hook(struct btrfs_root *root, struct extent_buffer *eb,
4387 static inline int btrfs_test_is_dummy_root(struct btrfs_root *root) in btrfs_test_is_dummy_root()