Lines Matching refs:io_tree

115 	BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops;  in btrfs_test_inode_set_ops()
683 struct extent_io_tree *io_tree; in submit_compressed_extents() local
692 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
700 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
720 extent_write_locked_range(io_tree, in submit_compressed_extents()
733 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
744 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
838 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
1137 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1518 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
1958 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
1992 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, 0, in btrfs_writepage_fixup_worker()
2001 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker()
2022 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2484 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2612 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2820 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
2875 lock_extent_bits(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2879 ret = test_range_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2888 clear_extent_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2946 unlock_extent_cached(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2963 clear_extent_uptodate(io_tree, start, end, NULL, GFP_NOFS); in btrfs_finish_ordered_io()
3086 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_readpage_end_io_hook() local
3098 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_readpage_end_io_hook()
3099 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM, in btrfs_readpage_end_io_hook()
3760 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_read_locked_inode()
4618 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_page() local
4667 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state); in btrfs_truncate_page()
4672 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
4681 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_truncate_page()
4689 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
4707 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, in btrfs_truncate_page()
4772 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
4798 lock_extent_bits(io_tree, hole_start, block_end - 1, 0, in btrfs_cont_expand()
4804 unlock_extent_cached(io_tree, hole_start, block_end - 1, in btrfs_cont_expand()
4869 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state, in btrfs_cont_expand()
5056 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5097 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5098 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5104 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5108 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5110 lock_extent_bits(io_tree, start, end, 0, &cached_state); in evict_inode_truncate_pages()
5123 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5130 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5132 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
6469 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_create()
6757 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_get_extent() local
6935 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
7049 found = count_range_bits(&BTRFS_I(inode)->io_tree, &range_start, in btrfs_get_extent_fiemap()
7183 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7266 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7392 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7414 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7692 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_get_blocks_direct()
7704 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_get_blocks_direct()
7992 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
8392 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8542 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_readpage()
8567 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_writepage()
8578 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_writepages()
8587 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_readpages()
8597 tree = &BTRFS_I(page->mapping->host)->io_tree; in __btrfs_releasepage()
8635 tree = &BTRFS_I(inode)->io_tree; in btrfs_invalidatepage()
8735 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8778 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state); in btrfs_page_mkwrite()
8787 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8802 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_page_mkwrite()
8810 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8837 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, GFP_NOFS); in btrfs_page_mkwrite()
9067 extent_io_tree_init(&ei->io_tree, &inode->i_data); in btrfs_alloc_inode()
9069 ei->io_tree.track_uptodate = 1; in btrfs_alloc_inode()
9693 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_symlink()
9957 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_tmpfile()