Lines Matching refs:io_tree
691 btrfs_lock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
696 btrfs_unlock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
1089 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1143 btrfs_lock_extent(io_tree, start, end, &cached); in submit_one_async_extent()
1394 btrfs_lock_extent(&inode->io_tree, start, start + cur_alloc_size - 1, in cow_file_range()
1400 btrfs_unlock_extent(&inode->io_tree, start, in cow_file_range()
1410 btrfs_unlock_extent(&inode->io_tree, start, in cow_file_range()
1708 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1746 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1747 count = btrfs_count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1762 btrfs_clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1765 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1973 btrfs_lock_extent(&inode->io_tree, file_pos, end, cached); in nocow_one_range()
1981 btrfs_unlock_extent(&inode->io_tree, file_pos, end, cached); in nocow_one_range()
1994 btrfs_unlock_extent(&inode->io_tree, file_pos, end, cached); in nocow_one_range()
2293 btrfs_lock_extent(&inode->io_tree, cur_offset, end, &cached); in run_delalloc_nocow()
2315 btrfs_test_range_bit_exists(&inode->io_tree, start, end, EXTENT_DEFRAG)) in should_nocow()
2363 lockdep_assert_held(&inode->io_tree.lock); in btrfs_split_delalloc_extent()
2403 lockdep_assert_held(&inode->io_tree.lock); in btrfs_merge_delalloc_extent()
2505 lockdep_assert_held(&inode->io_tree.lock); in btrfs_set_delalloc_extent()
2565 lockdep_assert_held(&inode->io_tree.lock); in btrfs_clear_delalloc_extent()
2687 ret = btrfs_set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2722 return btrfs_set_extent_bit(&inode->io_tree, start, end, in btrfs_set_extent_delalloc()
2798 btrfs_lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2806 btrfs_unlock_extent(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2833 btrfs_unlock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
3081 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_one_ordered() local
3132 btrfs_lock_extent_bits(io_tree, start, end, in btrfs_finish_one_ordered()
3218 btrfs_clear_extent_bit(&inode->io_tree, start, end, in btrfs_finish_one_ordered()
3229 btrfs_clear_extent_bit(&inode->io_tree, start, end, clear_bits, in btrfs_finish_one_ordered()
3379 btrfs_test_range_bit(&inode->io_tree, file_offset, end, EXTENT_NODATASUM, in btrfs_data_csum_ok()
3382 btrfs_clear_extent_bit(&inode->io_tree, file_offset, end, in btrfs_data_csum_ok()
4864 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
4982 btrfs_lock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4986 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4994 btrfs_clear_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
5001 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5030 btrfs_set_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
5033 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5111 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
5191 btrfs_unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5336 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5360 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5361 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5368 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5373 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5375 btrfs_lock_extent(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5389 btrfs_clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5394 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5396 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
7212 struct extent_io_tree *io_tree = &inode->io_tree; in can_nocow_extent() local
7278 ret = btrfs_test_range_bit_exists(io_tree, offset, range_end, in can_nocow_extent()
7444 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidate_folio()
7692 btrfs_lock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
7707 btrfs_unlock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
7867 btrfs_extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO); in btrfs_alloc_inode()
7868 ei->io_tree.inode = ei; in btrfs_alloc_inode()
9247 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_inline() local
9309 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
9435 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_regular() local
9457 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
9499 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read() local
9534 if (!btrfs_try_lock_extent(io_tree, start, lockend, cached_state)) { in btrfs_encoded_read()
9543 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9556 btrfs_lock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9562 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9637 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9653 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9666 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_do_encoded_write() local
9800 btrfs_lock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9807 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9872 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9897 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10048 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10162 btrfs_lock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10340 btrfs_unlock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()