Lines Matching refs:io_tree
775 struct extent_io_tree *io_tree = &inode->io_tree;
785 lock_extent(io_tree, async_extent->start,
828 unlock_extent(io_tree, async_extent->start,
1254 unlock_extent(&inode->io_tree, start, end);
1381 struct extent_io_tree *io_tree = &inode->io_tree;
1417 count = count_range_bits(io_tree, &range_start, end, range_bytes,
1432 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE,
1805 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, 0, NULL))
2282 ret = set_extent_bit(&inode->io_tree, search_start,
2318 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits,
2397 lock_extent_bits(&inode->io_tree, page_start, page_end, &cached_state);
2405 unlock_extent_cached(&inode->io_tree, page_start, page_end,
2432 unlock_extent_cached(&inode->io_tree, page_start, page_end,
2634 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
2693 lock_extent_bits(io_tree, start, end, &cached_state);
2752 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits,
2776 clear_extent_uptodate(io_tree, unwritten_start, end, NULL);
2900 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
2912 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) {
2913 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM);
4258 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, (u64)-1,
4548 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start,
4572 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
4638 lock_extent_bits(io_tree, block_start, block_end, &cached_state);
4643 unlock_extent_cached(io_tree, block_start, block_end,
4652 clear_extent_bit(&BTRFS_I(inode)->io_tree, block_start, block_end,
4659 unlock_extent_cached(io_tree, block_start, block_end,
4679 unlock_extent_cached(io_tree, block_start, block_end, &cached_state);
4682 set_extent_bit(&BTRFS_I(inode)->io_tree, block_start,
4759 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
4855 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state);
4988 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
5026 * io_tree to unlock a range it may be too late, leading to an
5029 spin_lock(&io_tree->lock);
5030 while (!RB_EMPTY_ROOT(&io_tree->state)) {
5037 node = rb_first(&io_tree->state);
5042 spin_unlock(&io_tree->lock);
5044 lock_extent_bits(io_tree, start, end, &cached_state);
5058 clear_extent_bit(io_tree, start, end,
5064 spin_lock(&io_tree->lock);
5066 spin_unlock(&io_tree->lock);
6585 * data directly into the page and marks the extent up to date in the io_tree.
6606 struct extent_io_tree *io_tree = &inode->io_tree;
6768 set_extent_uptodate(io_tree, em->start,
6839 delalloc_len = count_range_bits(&inode->io_tree, &delalloc_start,
7024 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
7117 ret = test_range_bit(io_tree, offset, range_end,
7168 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend,
7190 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend,
7516 unlock_extent_cached(&BTRFS_I(inode)->io_tree,
7543 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend,
7567 unlock_extent(&BTRFS_I(inode)->io_tree, pos, pos + length - 1);
7578 unlock_extent(&BTRFS_I(inode)->io_tree, pos,
7621 unlock_extent(&BTRFS_I(dip->inode)->io_tree,
7658 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
7677 clean_io_failure(fs_info, failure_tree, io_tree,
7886 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset,
8213 struct extent_io_tree *tree = &inode->io_tree;
8304 * Then its QGROUP_RESERVED bit in io_tree is already cleaned.
8310 * bit of its io_tree, and free the qgroup reserved data space.
8347 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
8402 lock_extent_bits(io_tree, page_start, page_end, &cached_state);
8412 unlock_extent_cached(io_tree, page_start, page_end,
8438 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end,
8445 unlock_extent_cached(io_tree, page_start, page_end,
8469 unlock_extent_cached(io_tree, page_start, page_end, &cached_state);
8713 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode);
8718 ei->io_tree.track_uptodate = true;
10164 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
10253 lock_extent_bits(io_tree, 0, isize - 1, &cached_state);
10390 unlock_extent_cached(io_tree, 0, isize - 1, &cached_state);