Lines Matching refs:io_tree

959 	struct extent_io_tree *io_tree = &inode->io_tree;  in submit_one_async_extent()  local
980 lock_extent(io_tree, start, end, NULL); in submit_one_async_extent()
1527 unlock_extent(&inode->io_tree, start, end, NULL); in cow_file_range_async()
1699 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1735 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1750 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
2186 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, in should_nocow()
2554 lock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_zoned_em()
2628 unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_zoned_em()
2819 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2855 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits, in btrfs_set_extent_delalloc()
2934 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2942 unlock_extent(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2969 unlock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
3206 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_ordered_io() local
3273 lock_extent(io_tree, start, end, &cached_state); in btrfs_finish_ordered_io()
3327 clear_extent_bit(&inode->io_tree, start, end, in btrfs_finish_ordered_io()
3339 clear_extent_bit(&inode->io_tree, start, end, clear_bits, in btrfs_finish_ordered_io()
3362 clear_extent_uptodate(io_tree, unwritten_start, end, NULL); in btrfs_finish_ordered_io()
3507 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_verify_data_csum() local
3536 test_range_bit(io_tree, file_offset, in btrfs_verify_data_csum()
3540 clear_extent_bits(io_tree, file_offset, in btrfs_verify_data_csum()
4865 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
4932 lock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4936 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4944 clear_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
4951 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4968 unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4971 set_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
5050 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
5135 unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5280 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5304 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5305 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5312 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5317 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5319 lock_extent(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5333 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5338 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5340 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
7156 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7226 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7252 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
7258 if (!try_lock_extent(io_tree, lockstart, lockend)) in lock_extent_direct()
7261 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7283 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
7728 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7758 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7782 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1, in btrfs_dio_iomap_end()
7794 unlock_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
7818 unlock_extent(&BTRFS_I(dip->inode)->io_tree, in btrfs_dio_private_put()
8217 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidate_folio()
8399 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8454 lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8458 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8469 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8495 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
8502 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8522 unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8623 lock_extent(&BTRFS_I(inode)->io_tree, lock_start, (u64)-1, in btrfs_truncate()
8639 unlock_extent(&BTRFS_I(inode)->io_tree, lock_start, (u64)-1, in btrfs_truncate()
8787 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode); in btrfs_alloc_inode()
10145 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_inline() local
10207 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
10388 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_regular() local
10410 unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
10450 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read() local
10480 lock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10486 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10560 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10581 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_encoded_read()
10594 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_do_encoded_write() local
10719 lock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10726 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10788 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10819 unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10971 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
11060 lock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
11197 unlock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()