Home
last modified time | relevance | path

Searched refs:io_tree (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/fs/btrfs/
H A Ddirect-io.c39 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
48 lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
53 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
59 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
81 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
134 unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
578 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
583 unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len, in btrfs_dio_iomap_begin()
618 unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
630 unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
[all …]
H A Dinode.c1102 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1721 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
3097 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_one_ordered() local
4809 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
5005 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
5230 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
7118 struct extent_io_tree *io_tree = &inode->io_tree; in can_nocow_extent() local
9115 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_inline() local
9308 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_regular() local
9372 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read() local
[all …]
H A Ddefrag.c750 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
782 lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
785 unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
897 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_folio()
899 unlock_extent(&inode->io_tree, page_start, page_end, in defrag_prepare_one_folio()
1030 if (test_range_bit_exists(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets()
1176 clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1179 set_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1229 lock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range()
1257 unlock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range()
H A Dfile.c101 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_folio()
927 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
942 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1281 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
1779 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
1838 lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
1877 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
2116 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2634 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2905 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
[all …]
H A Dreflink.c98 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
649 lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
652 unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
752 lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
754 unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
H A Drelocation.c913 ret = try_lock_extent(&inode->io_tree, key.offset, in replace_file_extents()
921 unlock_extent(&inode->io_tree, key.offset, end, in replace_file_extents()
1381 lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1383 unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2709 clear_extent_bits(&inode->io_tree, i_size, in prealloc_file_extent_cluster()
2741 lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2747 unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2780 lock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2782 unlock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2910 clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
[all …]
H A Dordered-data.c1176 lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1189 unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1207 if (!try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1215 unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
H A Dextent_io.c314 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
406 clear_extent_bit(&inode->io_tree, start, end, clear_bits, cached); in extent_clear_unlock_delalloc()
1215 lock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1238 unlock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1258 unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_read_folio()
1446 unlock_extent(&inode->io_tree, found_start, in writepage_delalloc()
2577 unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_readahead()
2665 struct extent_io_tree *io_tree = &inode->io_tree; in try_release_extent_mapping() local
2684 if (test_range_bit_exists(io_tree, em->start, in try_release_extent_mapping()
2733 return try_release_extent_state(io_tree, folio); in try_release_extent_mapping()
H A Dfiemap.c664 lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
844 unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
H A Dioctl.c4431 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_ioctl_encoded_read() local
4513 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4664 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_finished() local
4702 unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished()
4735 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_extent() local
4791 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4813 struct extent_io_tree *io_tree; in btrfs_uring_encoded_read() local
4828 io_tree = &inode->io_tree; in btrfs_uring_encoded_read()
4916 unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_encoded_read()
H A Dfree-space-cache.c339 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
351 unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1163 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1175 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1270 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1291 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc()
1417 lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1478 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
H A Dbtrfs_inode.h164 struct extent_io_tree io_tree; member
H A Dextent_map.c1058 lock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
1111 unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
H A Dqgroup.c4132 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range()
4235 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
4329 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
4355 return clear_record_extent_bits(&inode->io_tree, start, in __btrfs_qgroup_release_data()
4365 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data()
4614 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
H A Dcompression.c431 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
H A Dfile-item.c433 set_extent_bit(&inode->io_tree, file_offset, in btrfs_lookup_bio_sums()
H A Ddisk-io.c534 tree = &folio_to_inode(folio)->io_tree; in btree_invalidate_folio()
1930 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
/linux-6.15/fs/btrfs/tests/
H A Dinode-tests.c952 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1020 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1055 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1071 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
H A Dextent-io-tests.c146 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()