Lines Matching refs:root

463 	__le64 root;  member
653 __le64 root; member
670 __le64 root; member
1254 struct rb_root root; member
1303 struct btrfs_root *root; member
2194 #define btrfs_test_opt(root, opt) ((root)->fs_info->mount_opt & \ argument
2197 #define btrfs_set_and_info(root, opt, fmt, args...) \ argument
2199 if (!btrfs_test_opt(root, opt)) \
2200 btrfs_info(root->fs_info, fmt, ##args); \
2201 btrfs_set_opt(root->fs_info->mount_opt, opt); \
2204 #define btrfs_clear_and_info(root, opt, fmt, args...) \ argument
2206 if (btrfs_test_opt(root, opt)) \
2207 btrfs_info(root->fs_info, fmt, ##args); \
2208 btrfs_clear_opt(root->fs_info->mount_opt, opt); \
2213 btrfs_should_fragment_free_space(struct btrfs_root *root, in btrfs_should_fragment_free_space() argument
2216 return (btrfs_test_opt(root, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space()
2218 (btrfs_test_opt(root, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
2595 root, 64);
2626 BTRFS_SETGET_FUNCS(ref_root_v0, struct btrfs_extent_ref_v0, root, 64);
2952 static inline bool btrfs_root_readonly(struct btrfs_root *root) in btrfs_root_readonly() argument
2954 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_RDONLY)) != 0; in btrfs_root_readonly()
2957 static inline bool btrfs_root_dead(struct btrfs_root *root) in btrfs_root_dead() argument
2959 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; in btrfs_root_dead()
3097 BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64);
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() argument
3380 return (root->nodesize + root->nodesize * (BTRFS_MAX_LEVEL - 1)) * 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() argument
3391 return root->nodesize * BTRFS_MAX_LEVEL * num_items; 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,
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,
3638 *root, struct btrfs_key *key, struct btrfs_path *p, int
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() argument
3663 return btrfs_del_items(trans, root, path, path->slots[0], 1); in btrfs_del_item()
3666 void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
3670 *root, struct btrfs_key *key, void *data, u32 data_size);
3672 struct btrfs_root *root,
3677 struct btrfs_root *root, in btrfs_insert_empty_item() argument
3682 return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1); 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() argument
3694 return btrfs_next_old_leaf(root, p, time_seq); in btrfs_next_old_item()
3697 static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p) in btrfs_next_item() argument
3699 return btrfs_next_old_item(root, p, 0); 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() argument
3725 return (root->fs_info->sb->s_flags & MS_RDONLY || in btrfs_need_cleaner_sleep()
3726 btrfs_fs_closing(root->fs_info)); in btrfs_need_cleaner_sleep()
3751 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
3765 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
3768 *root, struct btrfs_key *key, struct btrfs_root_item
3771 struct btrfs_root *root,
3774 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key,
3782 struct btrfs_root *root);
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,
3859 *root, struct btrfs_path *path,
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);
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,
4264 #define btrfs_abort_transaction(trans, root, errno) \ argument
4268 &((root)->fs_info->fs_state))) { \
4273 __btrfs_abort_transaction((trans), (root), __func__, \
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 */ member
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() argument
4390 if (unlikely(test_bit(BTRFS_ROOT_DUMMY_ROOT, &root->state))) in btrfs_test_is_dummy_root()