/Linux-v5.4/fs/btrfs/ |
D | inode.c | 145 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops() 760 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() local 770 lock_extent(io_tree, async_extent->start, in submit_compressed_extents() 813 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents() 1222 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in cow_file_range_async() 1683 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow() 2149 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc() 2184 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker() 2194 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker() 2224 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker() [all …]
|
D | file.c | 494 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes() 539 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages() 1501 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need() 1508 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need() 1566 btrfs_lock_and_flush_ordered_range(&inode->io_tree, inode, lockstart, in check_can_nocow() 1580 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow() 1770 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write() 1791 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write() 2421 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range() 2441 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range() [all …]
|
D | extent_io.c | 1786 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range() 1945 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits, 1, 0, in extent_clear_unlock_delalloc() 2142 struct extent_io_tree *io_tree, in free_io_failure() argument 2155 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure() 2285 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument 2316 spin_lock(&io_tree->lock); in clean_io_failure() 2317 state = find_first_extent_bit_state(io_tree, in clean_io_failure() 2320 spin_unlock(&io_tree->lock); in clean_io_failure() 2334 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure() 2380 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record() [all …]
|
D | btrfs_inode.h | 56 struct extent_io_tree io_tree; member
|
D | ioctl.c | 1014 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local 1031 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 1108 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local 1125 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent() 1127 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent() 1259 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag() 1333 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() 1335 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag() 1349 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag() 1352 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() [all …]
|
D | disk-io.c | 301 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument 320 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 344 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 462 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local 469 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages() 474 if (verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages() 980 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage() 996 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage() 2117 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode() 2119 BTRFS_I(inode)->io_tree.track_uptodate = false; in btrfs_init_btree_inode() [all …]
|
D | extent_io.h | 513 struct extent_io_tree *io_tree, u64 start, 549 struct extent_io_tree *io_tree,
|
D | relocation.c | 1691 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1698 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 2132 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache() 2134 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache() 3171 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster() 3180 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster() 3214 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping() 3225 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping() 3311 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster() 3317 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster() [all …]
|
D | file-item.c | 159 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in __btrfs_lookup_bio_sums() local 237 set_extent_bits(io_tree, offset, in __btrfs_lookup_bio_sums()
|
D | free-space-cache.c | 1008 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item() 1020 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item() 1117 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache() 1138 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc() 1273 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache() 1327 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
|
D | qgroup.c | 3424 ret = set_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in btrfs_qgroup_reserve_data() 3443 clear_extent_bit(&BTRFS_I(inode)->io_tree, unode->val, in btrfs_qgroup_reserve_data() 3492 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, in qgroup_free_reserved_data() 3524 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in __btrfs_qgroup_release_data() 3756 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
|
D | compression.c | 448 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
|
/Linux-v5.4/fs/btrfs/tests/ |
D | inode-tests.c | 988 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1055 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1089 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting() 1104 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
|
D | extent-io-tests.c | 80 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()
|