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()
694 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_io_failed_hook()
878 struct btrfs_root *root; in btree_csum_one_bio()
1080 void readahead_tree_block(struct btrfs_root *root, u64 bytenr) in readahead_tree_block()
1093 int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, in reada_tree_block_flagged()
1131 struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, in btrfs_find_create_tree_block()
1152 struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, in read_tree_block()
1217 struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1291 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_root()
1293 struct btrfs_root *root = kzalloc(sizeof(*root), GFP_NOFS); in btrfs_alloc_root()
1301 struct btrfs_root *btrfs_alloc_dummy_root(void) in btrfs_alloc_dummy_root()
1303 struct btrfs_root *root; in btrfs_alloc_dummy_root()
1316 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree()
1321 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
1322 struct btrfs_root *root; in btrfs_create_tree()
1396 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree()
1399 struct btrfs_root *root; in alloc_log_tree()
1400 struct btrfs_root *tree_root = fs_info->tree_root; in alloc_log_tree()
1448 struct btrfs_root *log_root; in btrfs_init_log_root_tree()
1459 struct btrfs_root *root) in btrfs_add_log_tree()
1461 struct btrfs_root *log_root; in btrfs_add_log_tree()
1488 static struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root()
1491 struct btrfs_root *root; in btrfs_read_tree_root()
1541 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root, in btrfs_read_fs_root()
1544 struct btrfs_root *root; in btrfs_read_fs_root()
1558 int btrfs_init_fs_root(struct btrfs_root *root) in btrfs_init_fs_root()
1610 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1613 struct btrfs_root *root; in btrfs_lookup_fs_root()
1623 struct btrfs_root *root) in btrfs_insert_fs_root()
1643 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1647 struct btrfs_root *root; in btrfs_get_fs_root()
1776 struct btrfs_root *root = arg; in cleaner_kthread()
1862 struct btrfs_root *root = arg; in transaction_kthread()
2146 static void free_root_extent_buffers(struct btrfs_root *root) in free_root_extent_buffers()
2173 struct btrfs_root *gang[8]; in btrfs_free_fs_roots()
2178 struct btrfs_root, root_list); in btrfs_free_fs_roots()
2230 struct btrfs_root *tree_root) in btrfs_init_btree_inode()
2366 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_replay_log()
2367 struct btrfs_root *log_tree_root; in btrfs_replay_log()
2417 struct btrfs_root *tree_root) in btrfs_read_roots()
2419 struct btrfs_root *root; in btrfs_read_roots()
2484 struct btrfs_root *tree_root; in open_ctree()
2485 struct btrfs_root *chunk_root; in open_ctree()
3592 static int write_all_supers(struct btrfs_root *root, int max_mirrors) in write_all_supers()
3685 struct btrfs_root *root, int max_mirrors) in write_ctree_super()
3692 struct btrfs_root *root) in btrfs_drop_and_free_fs_root()
3712 static void free_fs_root(struct btrfs_root *root) in free_fs_root()
3730 void btrfs_free_fs_root(struct btrfs_root *root) in btrfs_free_fs_root()
3738 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots()
3786 int btrfs_commit_super(struct btrfs_root *root) in btrfs_commit_super()
3805 void close_ctree(struct btrfs_root *root) in close_ctree()
3942 struct btrfs_root *root; in btrfs_mark_buffer_dirty()
3974 static void __btrfs_btree_balance_dirty(struct btrfs_root *root, in __btrfs_btree_balance_dirty()
3998 void btrfs_btree_balance_dirty(struct btrfs_root *root) in btrfs_btree_balance_dirty()
4003 void btrfs_btree_balance_dirty_nodelay(struct btrfs_root *root) in btrfs_btree_balance_dirty_nodelay()
4010 struct btrfs_root *root = BTRFS_I(buf->pages[0]->mapping->host)->root; in btrfs_read_buffer()
4125 static void btrfs_error_commit_super(struct btrfs_root *root) in btrfs_error_commit_super()
4138 static void btrfs_destroy_ordered_extents(struct btrfs_root *root) in btrfs_destroy_ordered_extents()
4155 struct btrfs_root *root; in btrfs_destroy_all_ordered_extents()
4163 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_ordered_extents()
4178 struct btrfs_root *root) in btrfs_destroy_delayed_refs()
4245 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) in btrfs_destroy_delalloc_inodes()
4274 struct btrfs_root *root; in btrfs_destroy_all_delalloc_inodes()
4282 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_delalloc_inodes()
4297 static int btrfs_destroy_marked_extents(struct btrfs_root *root, in btrfs_destroy_marked_extents()
4330 static int btrfs_destroy_pinned_extent(struct btrfs_root *root, in btrfs_destroy_pinned_extent()
4365 struct btrfs_root *root) in btrfs_cleanup_one_transaction()
4392 static int btrfs_cleanup_transaction(struct btrfs_root *root) in btrfs_cleanup_transaction()