Lines Matching refs:io_tree
888 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
905 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
982 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
999 lock_extent_bits(io_tree, start, end, 0, &cached); in defrag_lookup_extent()
1001 unlock_extent_cached(io_tree, start, end, &cached, GFP_NOFS); in defrag_lookup_extent()
1132 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1206 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1208 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1223 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1226 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
2850 lock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
2856 !test_range_bit(&BTRFS_I(inode)->io_tree, off, in lock_extent_range()
2862 unlock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
2890 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
2891 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
2909 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, in btrfs_double_extent_lock()
3157 unlock_extent(&BTRFS_I(src)->io_tree, same_lock_start, in btrfs_extent_same()
3988 unlock_extent(&BTRFS_I(src)->io_tree, lock_start, lock_end); in btrfs_ioctl_clone()