/linux-6.1.9/fs/btrfs/ |
D | inode.c | 959 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local 980 lock_extent(io_tree, start, end, NULL); in submit_one_async_extent() 1527 unlock_extent(&inode->io_tree, start, end, NULL); in cow_file_range_async() 1699 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local 1735 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow() 1750 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow() 2186 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, in should_nocow() 2554 lock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_zoned_em() 2628 unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_zoned_em() 2819 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes() [all …]
|
D | reflink.c | 93 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page() 618 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1, NULL); in btrfs_double_extent_unlock() 619 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1, NULL); in btrfs_double_extent_unlock() 637 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, range1_end, NULL); in btrfs_double_extent_lock() 638 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, range2_end, NULL); in btrfs_double_extent_lock()
|
D | file.c | 474 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages() 1311 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos)) { in lock_and_cleanup_extent_if_need() 1321 lock_extent(&inode->io_tree, start_pos, last_pos, cached_state); in lock_and_cleanup_extent_if_need() 1329 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need() 1411 unlock_extent(&inode->io_tree, lockstart, lockend, NULL); in btrfs_check_nocow_lock() 1705 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write() 2520 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range() 2536 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range() 3036 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole() 3310 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range() [all …]
|
D | extent_io.c | 396 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range() 488 clear_extent_bit(&inode->io_tree, start, end, clear_bits, NULL); in extent_clear_unlock_delalloc() 675 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_clean_io_failure() local 691 ret = find_first_extent_bit(io_tree, failrec->bytenr, &locked_start, in btrfs_clean_io_failure() 908 set_extent_uptodate(&inode->io_tree, offset, in end_sector_io() 910 unlock_extent_atomic(&inode->io_tree, offset, offset + sectorsize - 1, in end_sector_io() 1110 tree = &processed->inode->io_tree; in endio_readpage_release_extent() 1757 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_do_readpage() 3425 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping() 3941 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in extent_fiemap() [all …]
|
D | ordered-data.c | 1046 lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range() 1059 unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range() 1076 if (!try_lock_extent(&inode->io_tree, start, end)) in btrfs_try_lock_ordered_range() 1084 unlock_extent(&inode->io_tree, start, end, NULL); in btrfs_try_lock_ordered_range()
|
D | relocation.c | 1122 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1129 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents() 1569 lock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in invalidate_extent_cache() 1571 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in invalidate_extent_cache() 2842 clear_extent_bits(&inode->io_tree, i_size, in prealloc_file_extent_cluster() 2872 lock_extent(&inode->io_tree, start, end, NULL); in prealloc_file_extent_cluster() 2878 unlock_extent(&inode->io_tree, start, end, NULL); in prealloc_file_extent_cluster() 2906 lock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in setup_relocation_extent_mapping() 2908 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in setup_relocation_extent_mapping() 3001 lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end, NULL); in relocate_one_page() [all …]
|
D | btrfs_inode.h | 94 struct extent_io_tree io_tree; member
|
D | file-item.c | 378 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_lookup_bio_sums() local 498 set_extent_bits(io_tree, file_offset, in btrfs_lookup_bio_sums()
|
D | ioctl.c | 1189 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local 1221 lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent() 1224 unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent() 1336 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_page() 1338 unlock_extent(&inode->io_tree, page_start, page_end, in defrag_prepare_one_page() 1471 if (test_range_bit(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets() 1617 clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target() 1620 set_extent_defrag(&inode->io_tree, start, start + len - 1, cached_state); in defrag_one_locked_target() 1669 lock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range() 1697 unlock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range()
|
D | disk-io.c | 121 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument 134 lock_extent(io_tree, eb->start, eb->start + eb->len - 1, &cached_state); in verify_parent_transid() 147 unlock_extent(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 262 struct extent_io_tree *io_tree; in btrfs_read_extent_buffer() local 269 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btrfs_read_extent_buffer() 274 if (verify_parent_transid(io_tree, eb, in btrfs_read_extent_buffer() 846 tree = &BTRFS_I(folio->mapping->host)->io_tree; in btree_invalidate_folio() 2240 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode() 4742 ret = verify_parent_transid(&BTRFS_I(btree_inode)->io_tree, buf, in btrfs_buffer_uptodate()
|
D | free-space-cache.c | 351 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache() 363 unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache() 1165 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item() 1177 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item() 1274 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache() 1295 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc() 1421 lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache() 1477 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
|
D | qgroup.c | 3657 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range() 3758 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data() 3851 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data() 3882 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data() 4129 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
|
D | compression.c | 530 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
|
/linux-6.1.9/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 | 129 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()
|