Lines Matching refs:io_tree
115 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops()
676 struct extent_io_tree *io_tree; in submit_compressed_extents() local
685 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
693 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
713 extent_write_locked_range(io_tree, in submit_compressed_extents()
726 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
737 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
831 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
1127 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1508 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
1943 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
1977 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, 0, in btrfs_writepage_fixup_worker()
1986 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker()
2006 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2462 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2590 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2799 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
2846 lock_extent_bits(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2850 ret = test_range_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2859 clear_extent_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2917 unlock_extent_cached(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
2934 clear_extent_uptodate(io_tree, start, end, NULL, GFP_NOFS); in btrfs_finish_ordered_io()
3060 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_readpage_end_io_hook() local
3072 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_readpage_end_io_hook()
3073 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM, in btrfs_readpage_end_io_hook()
3699 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_read_locked_inode()
4580 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_page() local
4626 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state); in btrfs_truncate_page()
4631 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
4640 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_truncate_page()
4648 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
4666 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, in btrfs_truncate_page()
4730 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
4756 lock_extent_bits(io_tree, hole_start, block_end - 1, 0, in btrfs_cont_expand()
4762 unlock_extent_cached(io_tree, hole_start, block_end - 1, in btrfs_cont_expand()
4827 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state, in btrfs_cont_expand()
5014 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5039 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5040 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5044 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5047 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5049 lock_extent_bits(io_tree, state->start, state->end, in evict_inode_truncate_pages()
5051 clear_extent_bit(io_tree, state->start, state->end, in evict_inode_truncate_pages()
5059 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5061 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
6401 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_create()
6689 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_get_extent() local
6867 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
6982 found = count_range_bits(&BTRFS_I(inode)->io_tree, &range_start, in btrfs_get_extent_fiemap()
7116 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7199 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7325 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7347 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7606 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_get_blocks_direct()
7618 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_get_blocks_direct()
7896 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
8414 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_readpage()
8439 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_writepage()
8450 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_writepages()
8459 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_readpages()
8469 tree = &BTRFS_I(page->mapping->host)->io_tree; in __btrfs_releasepage()
8507 tree = &BTRFS_I(inode)->io_tree; in btrfs_invalidatepage()
8595 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8636 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state); in btrfs_page_mkwrite()
8645 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8660 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_page_mkwrite()
8668 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8695 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, GFP_NOFS); in btrfs_page_mkwrite()
8926 extent_io_tree_init(&ei->io_tree, &inode->i_data); in btrfs_alloc_inode()
8928 ei->io_tree.track_uptodate = 1; in btrfs_alloc_inode()
9552 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_symlink()
9807 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_tmpfile()