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()
1255 unlock_extent(&inode->io_tree, start, end); in cow_file_range_async()
1382 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1418 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1433 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1806 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, 0, NULL)) in need_force_cow()
2283 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2319 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits, in btrfs_set_extent_delalloc()
2398 lock_extent_bits(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2406 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2433 unlock_extent_cached(&inode->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2635 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
2694 lock_extent_bits(io_tree, start, end, &cached_state); in btrfs_finish_ordered_io()
2753 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits, in btrfs_finish_ordered_io()
2765 clear_extent_uptodate(io_tree, unwritten_start, end, NULL); in btrfs_finish_ordered_io()
2889 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_verify_data_csum() local
2901 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_verify_data_csum()
2902 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM); in btrfs_verify_data_csum()
4242 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, (u64)-1, in btrfs_truncate_inode_items()
4532 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, in btrfs_truncate_inode_items()
4556 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_block() local
4622 lock_extent_bits(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4627 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
4636 clear_extent_bit(&BTRFS_I(inode)->io_tree, block_start, block_end, in btrfs_truncate_block()
4643 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
4663 unlock_extent_cached(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4666 set_extent_bit(&BTRFS_I(inode)->io_tree, block_start, in btrfs_truncate_block()
4743 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
4839 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
4972 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5013 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5014 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5021 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5026 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5028 lock_extent_bits(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5042 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5048 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5050 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
6590 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_get_extent() local
6752 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
6823 delalloc_len = count_range_bits(&inode->io_tree, &delalloc_start, in btrfs_get_extent_fiemap()
7008 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7101 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7152 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7174 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7488 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_dio_iomap_begin()
7515 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
7539 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1); in btrfs_dio_iomap_end()
7550 unlock_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
7593 unlock_extent(&BTRFS_I(dip->inode)->io_tree, in btrfs_dio_private_put()
7630 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_check_read_dio_bio() local
7649 clean_io_failure(fs_info, failure_tree, io_tree, in btrfs_check_read_dio_bio()
7858 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8181 struct extent_io_tree *tree = &inode->io_tree; in btrfs_invalidatepage()
8302 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
8357 lock_extent_bits(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8367 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8393 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
8400 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
8426 unlock_extent_cached(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
8670 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode); in btrfs_alloc_inode()
8675 ei->io_tree.track_uptodate = true; in btrfs_alloc_inode()
10059 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10119 lock_extent_bits(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10245 unlock_extent_cached(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()