Lines Matching refs:btrfs_root

59 static void free_fs_root(struct btrfs_root *root);
62 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
64 struct btrfs_root *root);
65 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
66 static int btrfs_destroy_marked_extents(struct btrfs_root *root,
69 static int btrfs_destroy_pinned_extent(struct btrfs_root *root,
71 static int btrfs_cleanup_transaction(struct btrfs_root *root);
72 static void btrfs_error_commit_super(struct btrfs_root *root);
437 static int btree_read_extent_buffer_pages(struct btrfs_root *root, in btree_read_extent_buffer_pages()
538 static noinline int check_leaf(struct btrfs_root *root, in check_leaf()
606 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_readpage_end_io_hook()
695 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_io_failed_hook()
875 struct btrfs_root *root; in btree_csum_one_bio()
1072 void readahead_tree_block(struct btrfs_root *root, u64 bytenr) in readahead_tree_block()
1085 int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, in reada_tree_block_flagged()
1123 struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, in btrfs_find_create_tree_block()
1144 struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, in read_tree_block()
1209 struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1282 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_root()
1284 struct btrfs_root *root = kzalloc(sizeof(*root), GFP_NOFS); in btrfs_alloc_root()
1292 struct btrfs_root *btrfs_alloc_dummy_root(void) in btrfs_alloc_dummy_root()
1294 struct btrfs_root *root; in btrfs_alloc_dummy_root()
1307 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree()
1312 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
1313 struct btrfs_root *root; in btrfs_create_tree()
1387 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree()
1390 struct btrfs_root *root; in alloc_log_tree()
1391 struct btrfs_root *tree_root = fs_info->tree_root; in alloc_log_tree()
1439 struct btrfs_root *log_root; in btrfs_init_log_root_tree()
1450 struct btrfs_root *root) in btrfs_add_log_tree()
1452 struct btrfs_root *log_root; in btrfs_add_log_tree()
1479 static struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root()
1482 struct btrfs_root *root; in btrfs_read_tree_root()
1533 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root, in btrfs_read_fs_root()
1536 struct btrfs_root *root; in btrfs_read_fs_root()
1550 int btrfs_init_fs_root(struct btrfs_root *root) in btrfs_init_fs_root()
1602 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1605 struct btrfs_root *root; in btrfs_lookup_fs_root()
1615 struct btrfs_root *root) in btrfs_insert_fs_root()
1635 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1639 struct btrfs_root *root; in btrfs_get_fs_root()
1768 struct btrfs_root *root = arg; in cleaner_kthread()
1816 struct btrfs_root *root = arg; in transaction_kthread()
2100 static void free_root_extent_buffers(struct btrfs_root *root) in free_root_extent_buffers()
2127 struct btrfs_root *gang[8]; in btrfs_free_fs_roots()
2132 struct btrfs_root, root_list); in btrfs_free_fs_roots()
2184 struct btrfs_root *tree_root) in btrfs_init_btree_inode()
2320 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_replay_log()
2321 struct btrfs_root *log_tree_root; in btrfs_replay_log()
2368 struct btrfs_root *tree_root) in btrfs_read_roots()
2370 struct btrfs_root *root; in btrfs_read_roots()
2435 struct btrfs_root *tree_root; in open_ctree()
2436 struct btrfs_root *chunk_root; in open_ctree()
3501 static int write_all_supers(struct btrfs_root *root, int max_mirrors) in write_all_supers()
3594 struct btrfs_root *root, int max_mirrors) in write_ctree_super()
3601 struct btrfs_root *root) in btrfs_drop_and_free_fs_root()
3621 static void free_fs_root(struct btrfs_root *root) in free_fs_root()
3639 void btrfs_free_fs_root(struct btrfs_root *root) in btrfs_free_fs_root()
3647 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots()
3695 int btrfs_commit_super(struct btrfs_root *root) in btrfs_commit_super()
3714 void close_ctree(struct btrfs_root *root) in close_ctree()
3840 struct btrfs_root *root; in btrfs_mark_buffer_dirty()
3872 static void __btrfs_btree_balance_dirty(struct btrfs_root *root, in __btrfs_btree_balance_dirty()
3896 void btrfs_btree_balance_dirty(struct btrfs_root *root) in btrfs_btree_balance_dirty()
3901 void btrfs_btree_balance_dirty_nodelay(struct btrfs_root *root) in btrfs_btree_balance_dirty_nodelay()
3908 struct btrfs_root *root = BTRFS_I(buf->pages[0]->mapping->host)->root; in btrfs_read_buffer()
4023 static void btrfs_error_commit_super(struct btrfs_root *root) in btrfs_error_commit_super()
4036 static void btrfs_destroy_ordered_extents(struct btrfs_root *root) in btrfs_destroy_ordered_extents()
4053 struct btrfs_root *root; in btrfs_destroy_all_ordered_extents()
4061 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_ordered_extents()
4076 struct btrfs_root *root) in btrfs_destroy_delayed_refs()
4143 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) in btrfs_destroy_delalloc_inodes()
4172 struct btrfs_root *root; in btrfs_destroy_all_delalloc_inodes()
4180 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_delalloc_inodes()
4195 static int btrfs_destroy_marked_extents(struct btrfs_root *root, in btrfs_destroy_marked_extents()
4228 static int btrfs_destroy_pinned_extent(struct btrfs_root *root, in btrfs_destroy_pinned_extent()
4282 struct btrfs_root *root) in btrfs_cleanup_one_transaction()
4310 static int btrfs_cleanup_transaction(struct btrfs_root *root) in btrfs_cleanup_transaction()