Lines Matching refs:io_tree
775 struct extent_io_tree *io_tree = &inode->io_tree; in submit_compressed_extents() local
785 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
828 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
1254 unlock_extent(&inode->io_tree, start, end); in cow_file_range_async()
1381 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1417 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1432 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1805 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, 0, NULL)) in need_force_cow()
2282 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2318 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits, in btrfs_set_extent_delalloc()
2397 lock_extent_bits(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2405 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2432 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2634 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
2693 lock_extent_bits(io_tree, start, end, &cached_state); in btrfs_finish_ordered_io()
2752 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits, in btrfs_finish_ordered_io()
2776 clear_extent_uptodate(io_tree, unwritten_start, end, NULL); in btrfs_finish_ordered_io()
2900 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_verify_data_csum() local
2912 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_verify_data_csum()
2913 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM); in btrfs_verify_data_csum()
4261 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, (u64)-1, in btrfs_truncate_inode_items()
4551 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, in btrfs_truncate_inode_items()
4575 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_block() local
4641 lock_extent_bits(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4646 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
4655 clear_extent_bit(&BTRFS_I(inode)->io_tree, block_start, block_end, in btrfs_truncate_block()
4662 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
4682 unlock_extent_cached(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4685 set_extent_bit(&BTRFS_I(inode)->io_tree, block_start, in btrfs_truncate_block()
4762 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
4858 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
4991 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5032 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5033 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5040 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5045 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5047 lock_extent_bits(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5061 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5067 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5069 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
6609 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_get_extent() local
6771 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
6842 delalloc_len = count_range_bits(&inode->io_tree, &delalloc_start, in btrfs_get_extent_fiemap()
7027 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7120 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7171 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7193 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7519 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_dio_iomap_begin()
7546 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7570 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1); in btrfs_dio_iomap_end()
7581 unlock_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
7624 unlock_extent(&BTRFS_I(dip->inode)->io_tree, in btrfs_dio_private_put()
7661 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_check_read_dio_bio() local
7680 clean_io_failure(fs_info, failure_tree, io_tree, in btrfs_check_read_dio_bio()
7889 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8216 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidatepage()
8350 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8405 lock_extent_bits(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8415 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8441 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
8448 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8472 unlock_extent_cached(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8716 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode); in btrfs_alloc_inode()
8721 ei->io_tree.track_uptodate = true; in btrfs_alloc_inode()
10167 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10256 lock_extent_bits(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10393 unlock_extent_cached(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()