Lines Matching refs:io_tree

859 	struct extent_io_tree *io_tree = &inode->io_tree;  in submit_compressed_extents()  local
869 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
912 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
1361 unlock_extent(&inode->io_tree, start, end); in cow_file_range_async()
1510 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1546 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1561 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1931 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, in should_nocow()
2325 lock_extent(&inode->io_tree, start, start + len - 1); in split_zoned_em()
2399 unlock_extent(&inode->io_tree, start, start + len - 1); in split_zoned_em()
2605 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2641 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits, in btrfs_set_extent_delalloc()
2720 lock_extent_bits(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2728 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2755 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2988 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_ordered_io() local
3048 lock_extent_bits(io_tree, start, end, &cached_state); in btrfs_finish_ordered_io()
3100 clear_extent_bit(&inode->io_tree, start, end, in btrfs_finish_ordered_io()
3112 clear_extent_bit(&inode->io_tree, start, end, clear_bits, in btrfs_finish_ordered_io()
3136 clear_extent_uptodate(io_tree, unwritten_start, end, NULL); in btrfs_finish_ordered_io()
3268 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_verify_data_csum() local
3308 test_range_bit(io_tree, file_offset, in btrfs_verify_data_csum()
3312 clear_extent_bits(io_tree, file_offset, in btrfs_verify_data_csum()
4687 lock_extent_bits(&inode->io_tree, lock_start, (u64)-1, in btrfs_truncate_inode_items()
4982 unlock_extent_cached(&inode->io_tree, lock_start, (u64)-1, in btrfs_truncate_inode_items()
5006 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
5073 lock_extent_bits(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5077 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
5086 clear_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
5093 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
5111 unlock_extent_cached(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5114 set_extent_bit(&inode->io_tree, block_start, block_end, in btrfs_truncate_block()
5194 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
5289 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5432 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5473 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5474 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5481 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5486 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5488 lock_extent_bits(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5502 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5508 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5510 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
7049 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_get_extent() local
7212 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
7283 delalloc_len = count_range_bits(&inode->io_tree, &delalloc_start, in btrfs_get_extent_fiemap()
7478 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7571 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7622 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7644 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7946 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_dio_iomap_begin()
7976 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
8000 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1); in btrfs_dio_iomap_end()
8011 unlock_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
8046 unlock_extent(&BTRFS_I(dip->inode)->io_tree, in btrfs_dio_private_put()
8083 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_check_read_dio_bio() local
8102 clean_io_failure(fs_info, failure_tree, io_tree, in btrfs_check_read_dio_bio()
8276 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8542 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidatepage()
8726 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8781 lock_extent_bits(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8785 unlock_extent_cached(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8796 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8823 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
8830 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8852 unlock_extent_cached(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
9114 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode); in btrfs_alloc_inode()
9119 ei->io_tree.track_uptodate = true; in btrfs_alloc_inode()
10625 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10699 lock_extent_bits(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10836 unlock_extent_cached(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()