Home
last modified time | relevance | path

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

/Linux-v5.10/fs/btrfs/
Dinode.c775 struct extent_io_tree *io_tree = &inode->io_tree; in submit_compressed_extents() local
785 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
828 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
1255 unlock_extent(&inode->io_tree, start, end); in cow_file_range_async()
1382 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1418 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1433 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1806 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, 0, NULL)) in need_force_cow()
2283 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2319 return set_extent_delalloc(&inode->io_tree, start, end, extra_bits, in btrfs_set_extent_delalloc()
[all …]
Dreflink.c85 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
556 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
557 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
569 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_lock()
570 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()
Dextent-io-tree.h245 struct extent_io_tree *io_tree,
249 struct extent_io_tree *io_tree, u64 start,
Dfile.c487 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
1424 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1431 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1494 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1520 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1746 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write()
1767 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2480 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2501 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2962 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
[all …]
Dextent_io.c1866 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
2026 clear_extent_bit(&inode->io_tree, start, end, clear_bits, 1, 0, NULL); in extent_clear_unlock_delalloc()
2222 struct extent_io_tree *io_tree, in free_io_failure() argument
2235 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure()
2365 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument
2396 spin_lock(&io_tree->lock); in clean_io_failure()
2397 state = find_first_extent_bit_state(io_tree, in clean_io_failure()
2400 spin_unlock(&io_tree->lock); in clean_io_failure()
2414 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure()
2460 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record()
[all …]
Dbtrfs_inode.h61 struct extent_io_tree io_tree; member
Drelocation.c1093 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1100 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1536 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
1538 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2616 lock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster()
2622 unlock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster()
2652 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2663 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2759 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
2765 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
[all …]
Dioctl.c1053 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
1070 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1147 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
1164 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent()
1166 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent()
1298 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1372 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1374 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1387 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1390 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
Ddisk-io.c237 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument
256 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
280 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
399 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local
406 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages()
411 if (verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages()
914 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage()
2121 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
2123 BTRFS_I(inode)->io_tree.track_uptodate = false; in btrfs_init_btree_inode()
4165 ret = verify_parent_transid(&BTRFS_I(btree_inode)->io_tree, buf, in btrfs_buffer_uptodate()
Dfile-item.c262 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_lookup_bio_sums() local
340 set_extent_bits(io_tree, offset, in btrfs_lookup_bio_sums()
Dordered-data.c927 lock_extent_bits(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
940 unlock_extent_cached(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
Dfree-space-cache.c1031 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1043 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1140 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1161 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc()
1292 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1348 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
Dqgroup.c3525 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range()
3639 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
3733 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
3764 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data()
4010 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
Dcompression.c516 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
/Linux-v5.10/fs/btrfs/tests/
Dinode-tests.c983 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1051 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1086 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1102 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
Dextent-io-tests.c80 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()