/Linux-v5.15/fs/btrfs/ |
D | inode.c | 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() [all …]
|
D | reflink.c | 90 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page() 601 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock() 602 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock() 614 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_lock() 615 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()
|
D | file.c | 494 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages() 1449 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need() 1456 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need() 1507 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow() 1533 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow() 1840 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write() 2516 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range() 2537 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range() 3016 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole() 3294 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range() [all …]
|
D | extent-io-tree.h | 260 struct extent_io_tree *io_tree, 264 struct extent_io_tree *io_tree, u64 start,
|
D | extent_io.c | 1988 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range() 2069 clear_extent_bit(&inode->io_tree, start, end, clear_bits, 1, 0, NULL); in extent_clear_unlock_delalloc() 2252 struct extent_io_tree *io_tree, in free_io_failure() argument 2265 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure() 2398 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument 2422 spin_lock(&io_tree->lock); in clean_io_failure() 2423 state = find_first_extent_bit_state(io_tree, in clean_io_failure() 2426 spin_unlock(&io_tree->lock); in clean_io_failure() 2440 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure() 2486 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record() [all …]
|
D | relocation.c | 1120 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1127 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1565 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache() 1567 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache() 2833 clear_extent_bits(&inode->io_tree, i_size, in prealloc_file_extent_cluster() 2888 lock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster() 2894 unlock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster() 2924 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping() 2935 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping() 3024 lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end); in relocate_one_page() [all …]
|
D | btrfs_inode.h | 85 struct extent_io_tree io_tree; member
|
D | ioctl.c | 997 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local 1014 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 1091 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local 1108 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent() 1110 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent() 1243 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag() 1324 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() 1360 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag() 1373 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag() 1376 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() [all …]
|
D | disk-io.c | 238 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument 251 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 265 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 382 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local 389 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages() 394 if (verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages() 1013 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage() 2256 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode() 2258 BTRFS_I(inode)->io_tree.track_uptodate = false; in btrfs_init_btree_inode() 4451 ret = verify_parent_transid(&BTRFS_I(btree_inode)->io_tree, buf, in btrfs_buffer_uptodate()
|
D | file-item.c | 368 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_lookup_bio_sums() local 480 set_extent_bits(io_tree, file_offset, in btrfs_lookup_bio_sums()
|
D | ordered-data.c | 1029 lock_extent_bits(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range() 1042 unlock_extent_cached(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
|
D | free-space-cache.c | 1104 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item() 1116 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item() 1213 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache() 1234 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc() 1360 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache() 1416 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
|
D | qgroup.c | 3529 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range() 3630 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data() 3723 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data() 3754 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data() 4000 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
|
D | compression.c | 563 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
|
/Linux-v5.15/fs/btrfs/tests/ |
D | inode-tests.c | 974 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1042 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1077 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting() 1093 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()
|