Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Ddirect-io.c41 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
47 if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct()
50 btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
55 if (!btrfs_try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
61 btrfs_lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
83 btrfs_unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
136 btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
579 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
584 btrfs_unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len, in btrfs_dio_iomap_begin()
595 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
[all …]
H A Dinode.c723 btrfs_lock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
728 btrfs_unlock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
1138 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1190 btrfs_lock_extent(io_tree, start, end, &cached); in submit_one_async_extent()
1342 btrfs_lock_extent(&inode->io_tree, file_offset, cur_end, cached); in cow_one_range()
1816 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1854 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1855 count = btrfs_count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1870 btrfs_clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1873 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
[all …]
H A Ddefrag.c738 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
770 btrfs_lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
773 btrfs_unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
892 btrfs_lock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio()
894 btrfs_unlock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio()
1024 if (btrfs_test_range_bit_exists(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets()
1164 btrfs_clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1167 btrfs_set_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1232 btrfs_lock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
1258 btrfs_unlock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
H A Dfile.c100 btrfs_clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_folio()
915 if (!btrfs_try_lock_extent(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
922 btrfs_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
931 btrfs_unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1026 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1301 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, in copy_one_range()
1331 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in copy_one_range()
1857 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_page_mkwrite() local
1929 btrfs_lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
1932 btrfs_unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
[all …]
H A Dreflink.c97 btrfs_clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
647 btrfs_lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
650 btrfs_unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
749 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
751 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
H A Dordered-data.c1181 btrfs_lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1194 btrfs_unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1212 if (!btrfs_try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1220 btrfs_unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
H A Dextent_io.c374 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
472 btrfs_clear_extent_bit(&inode->io_tree, start, end, clear_bits, cached); in extent_clear_unlock_delalloc()
1305 btrfs_lock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1328 btrfs_unlock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1355 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_read_folio()
1546 btrfs_unlock_extent(&inode->io_tree, found_start, in writepage_delalloc()
2741 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_readahead()
2837 struct extent_io_tree *io_tree = &inode->io_tree; in try_release_extent_mapping() local
2856 if (btrfs_test_range_bit_exists(io_tree, em->start, in try_release_extent_mapping()
2906 return try_release_extent_state(io_tree, folio); in try_release_extent_mapping()
H A Dfiemap.c663 btrfs_lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
843 btrfs_unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
H A Dioctl.c4299 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_ioctl_encoded_read() local
4381 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4541 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_finished() local
4579 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished()
4613 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_extent() local
4669 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4684 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_encoded_read() local
4793 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_encoded_read()
H A Drelocation.c927 ret = btrfs_try_lock_extent(&inode->io_tree, key.offset, in replace_file_extents()
935 btrfs_unlock_extent(&inode->io_tree, key.offset, end, in replace_file_extents()
1395 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1397 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2709 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2715 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2748 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2750 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2873 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, in relocate_one_folio()
2878 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
[all …]
H A Dfree-space-cache.c340 btrfs_lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
352 btrfs_unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1163 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1175 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1264 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1285 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc()
1411 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1472 btrfs_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.c1069 btrfs_lock_extent(&inode->io_tree, start, start + len - 1, NULL); in btrfs_split_extent_map()
1122 btrfs_unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in btrfs_split_extent_map()
H A Dqgroup.c4160 clear_ret = btrfs_clear_extent_bit(&inode->io_tree, entry_start, entry_end, in qgroup_unreserve_range()
4263 ret = btrfs_set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
4358 ret = btrfs_clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
4385 return btrfs_clear_record_extent_bits(&inode->io_tree, start, in __btrfs_qgroup_release_data()
4395 ret = btrfs_clear_record_extent_bits(&inode->io_tree, start, start + len - 1, in __btrfs_qgroup_release_data()
4644 ret = btrfs_clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
H A Dfile-item.c470 btrfs_set_extent_bit(&inode->io_tree, file_offset, in btrfs_lookup_bio_sums()
H A Dcompression.c388 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
H A Ddisk-io.c493 tree = &folio_to_inode(folio)->io_tree; in btree_invalidate_folio()
1889 btrfs_extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
/linux/fs/btrfs/tests/
H A Dinode-tests.c955 ret = btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1022 ret = btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1056 ret = btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1071 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
H A Dextent-io-tests.c145 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()