Lines Matching refs:tree
322 struct extent_io_tree *tree; in csum_dirty_buffer() local
330 tree = &BTRFS_I(page->mapping->host)->io_tree; in csum_dirty_buffer()
339 eb = alloc_extent_buffer(tree, start, len, page, GFP_NOFS); in csum_dirty_buffer()
396 struct extent_io_tree *tree; in btree_readpage_end_io_hook() local
404 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage_end_io_hook()
413 eb = alloc_extent_buffer(tree, start, len, page, GFP_NOFS); in btree_readpage_end_io_hook()
670 struct extent_io_tree *tree; in btree_writepage() local
671 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_writepage()
678 return extent_write_full_page(tree, page, btree_get_extent, wbc); in btree_writepage()
684 struct extent_io_tree *tree; in btree_writepages() local
685 tree = &BTRFS_I(mapping->host)->io_tree; in btree_writepages()
694 num_dirty = count_range_bits(tree, &start, (u64)-1, in btree_writepages()
699 return extent_writepages(tree, mapping, btree_get_extent, wbc); in btree_writepages()
704 struct extent_io_tree *tree; in btree_readpage() local
705 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage()
706 return extent_read_full_page(tree, page, btree_get_extent); in btree_readpage()
711 struct extent_io_tree *tree; in btree_releasepage() local
718 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_releasepage()
721 ret = try_release_extent_state(map, tree, page, gfp_flags); in btree_releasepage()
725 ret = try_release_extent_buffer(tree, page); in btree_releasepage()
737 struct extent_io_tree *tree; in btree_invalidatepage() local
738 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage()
739 extent_invalidatepage(tree, page, offset); in btree_invalidatepage()
2382 struct extent_io_tree *tree; in btrfs_btree_balance_dirty() local
2386 tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree; in btrfs_btree_balance_dirty()
2391 num_dirty = count_range_bits(tree, &start, (u64)-1, in btrfs_btree_balance_dirty()