Home
last modified time | relevance | path

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

/linux/fs/btrfs/
H A Ddirect-io.c39 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
45 if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state)) in lock_extent_direct()
48 btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
53 if (!btrfs_try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
59 btrfs_lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
81 btrfs_unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
134 btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
577 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
582 btrfs_unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len, in btrfs_dio_iomap_begin()
593 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
[all …]
H A Dinode.c691 btrfs_lock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
696 btrfs_unlock_extent(&inode->io_tree, offset, end, &cached); in cow_file_range_inline()
1089 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1143 btrfs_lock_extent(io_tree, start, end, &cached); in submit_one_async_extent()
1394 btrfs_lock_extent(&inode->io_tree, start, start + cur_alloc_size - 1, in cow_file_range()
1400 btrfs_unlock_extent(&inode->io_tree, start, in cow_file_range()
1410 btrfs_unlock_extent(&inode->io_tree, start, in cow_file_range()
1708 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1746 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1747 count = btrfs_count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
[all …]
H A Ddefrag.c741 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
773 btrfs_lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
776 btrfs_unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
894 btrfs_lock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio()
896 btrfs_unlock_extent(&inode->io_tree, lock_start, lock_end, &cached_state); in defrag_prepare_one_folio()
1026 if (btrfs_test_range_bit_exists(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets()
1166 btrfs_clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1169 btrfs_set_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1233 btrfs_lock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
1259 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()
918 if (!btrfs_try_lock_extent(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
925 btrfs_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
934 btrfs_unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1029 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1305 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, in copy_one_range()
1335 btrfs_unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in copy_one_range()
1859 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_page_mkwrite() local
1931 btrfs_lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
1934 btrfs_unlock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
[all …]
H A Dreflink.c96 btrfs_clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
650 btrfs_lock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
653 btrfs_unlock_extent(&dst->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
753 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
755 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
H A Dordered-data.c1187 btrfs_lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1200 btrfs_unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1218 if (!btrfs_try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1226 btrfs_unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
H A Drelocation.c941 ret = btrfs_try_lock_extent(&inode->io_tree, key.offset, in replace_file_extents()
949 btrfs_unlock_extent(&inode->io_tree, key.offset, end, in replace_file_extents()
1409 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1411 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2723 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2729 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2762 btrfs_lock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2764 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2887 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, in relocate_one_folio()
2892 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
[all …]
H A Dextent_io.c308 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
400 btrfs_clear_extent_bit(&inode->io_tree, start, end, clear_bits, cached); in extent_clear_unlock_delalloc()
1204 btrfs_lock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1227 btrfs_unlock_extent(&inode->io_tree, start, end, cached_state); in lock_extents_for_read()
1247 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_read_folio()
1435 btrfs_unlock_extent(&inode->io_tree, found_start, in writepage_delalloc()
2587 btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); in btrfs_readahead()
2683 struct extent_io_tree *io_tree = &inode->io_tree; in try_release_extent_mapping() local
2702 if (btrfs_test_range_bit_exists(io_tree, em->start, in try_release_extent_mapping()
2752 return try_release_extent_state(io_tree, folio); in try_release_extent_mapping()
H A Dfiemap.c664 btrfs_lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
844 btrfs_unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
H A Dioctl.c4406 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_ioctl_encoded_read() local
4488 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4647 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_finished() local
4685 btrfs_unlock_extent(io_tree, priv->start, priv->lockend, &priv->cached_state); in btrfs_uring_read_finished()
4719 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_uring_read_extent() local
4775 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4790 struct extent_io_tree *io_tree; in btrfs_uring_encoded_read() local
4809 io_tree = &inode->io_tree; in btrfs_uring_encoded_read()
4898 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_encoded_read()
H A Dfree-space-cache.c339 btrfs_lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
351 btrfs_unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1162 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1174 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1269 btrfs_clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1290 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc()
1416 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1477 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.c1057 btrfs_lock_extent(&inode->io_tree, start, start + len - 1, NULL); in btrfs_split_extent_map()
1110 btrfs_unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in btrfs_split_extent_map()
H A Dqgroup.c4118 clear_ret = btrfs_clear_extent_bit(&inode->io_tree, entry_start, entry_end, in qgroup_unreserve_range()
4221 ret = btrfs_set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
4316 ret = btrfs_clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
4343 return btrfs_clear_record_extent_bits(&inode->io_tree, start, in __btrfs_qgroup_release_data()
4353 ret = btrfs_clear_record_extent_bits(&inode->io_tree, start, start + len - 1, in __btrfs_qgroup_release_data()
4602 ret = btrfs_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 btrfs_set_extent_bit(&inode->io_tree, file_offset, in btrfs_lookup_bio_sums()
H A Ddisk-io.c528 tree = &folio_to_inode(folio)->io_tree; in btree_invalidate_folio()
1926 btrfs_extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
/linux/fs/btrfs/tests/
H A Dextent-io-tests.c145 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()