Lines Matching refs:io_tree
1099 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1124 lock_extent(io_tree, start, end, NULL); in submit_one_async_extent()
1629 unlock_extent(&inode->io_tree, start, end, NULL); in run_delalloc_compressed()
1752 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1789 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1804 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
2238 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, in should_nocow()
2636 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2671 return set_extent_bit(&inode->io_tree, start, end, in btrfs_set_extent_delalloc()
2746 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2754 unlock_extent(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2781 unlock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
3018 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_one_ordered() local
3080 lock_extent(io_tree, start, end, &cached_state); in btrfs_finish_one_ordered()
3134 clear_extent_bit(&inode->io_tree, start, end, in btrfs_finish_one_ordered()
3146 clear_extent_bit(&inode->io_tree, start, end, clear_bits, in btrfs_finish_one_ordered()
3169 clear_extent_uptodate(io_tree, unwritten_start, end, NULL); in btrfs_finish_one_ordered()
3284 test_range_bit(&inode->io_tree, file_offset, end, EXTENT_NODATASUM, in btrfs_data_csum_ok()
3287 clear_extent_bits(&inode->io_tree, file_offset, end, in btrfs_data_csum_ok()
4659 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
4734 lock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4738 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4746 clear_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
4753 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4770 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4773 set_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
4852 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
4937 unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5081 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5105 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5106 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5113 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5118 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5120 lock_extent(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5134 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5139 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5141 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
7036 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7106 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7132 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
7138 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
7142 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7164 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7615 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7641 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7665 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1, in btrfs_dio_iomap_end()
7677 unlock_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
7710 unlock_extent(&inode->io_tree, dip->file_offset, in btrfs_dio_end_io()
7906 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidate_folio()
8088 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8143 lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8147 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8158 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8184 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
8191 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8211 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8321 lock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
8336 unlock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
8489 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO); in btrfs_alloc_inode()
8490 ei->io_tree.inode = ei; in btrfs_alloc_inode()
9813 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_inline() local
9875 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
9969 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_regular() local
9991 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
10031 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read() local
10061 lock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10067 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10141 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10162 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10175 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_do_encoded_write() local
10301 lock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10308 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10371 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10396 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10547 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10636 lock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10773 unlock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()