Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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()
1254 unlock_extent(&inode->io_tree, start, end); in cow_file_range_async()
1381 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1417 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1432 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
1805 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, 0, NULL)) in need_force_cow()
2282 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
2318 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()
603 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
604 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
616 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_lock()
617 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()
Dfile.c487 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
1423 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1430 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1493 if (!try_lock_extent(&inode->io_tree, lockstart, lockend)) in check_can_nocow()
1519 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1745 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write()
1766 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2486 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2507 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2975 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
[all …]
Dextent-io-tree.h245 struct extent_io_tree *io_tree,
249 struct extent_io_tree *io_tree, u64 start,
Dextent_io.c1864 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
2024 clear_extent_bit(&inode->io_tree, start, end, clear_bits, 1, 0, NULL); in extent_clear_unlock_delalloc()
2220 struct extent_io_tree *io_tree, in free_io_failure() argument
2233 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure()
2363 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument
2394 spin_lock(&io_tree->lock); in clean_io_failure()
2395 state = find_first_extent_bit_state(io_tree, in clean_io_failure()
2398 spin_unlock(&io_tree->lock); in clean_io_failure()
2412 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure()
2458 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record()
[all …]
Dbtrfs_inode.h77 struct extent_io_tree io_tree; member
Drelocation.c1111 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1118 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1554 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
1556 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2634 lock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster()
2640 unlock_extent(&inode->io_tree, start, end); in prealloc_file_extent_cluster()
2670 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2681 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2777 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
2783 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
[all …]
Dioctl.c1065 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
1082 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1159 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
1176 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent()
1178 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent()
1311 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1385 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1421 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1434 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1437 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
[all …]
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()
2139 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
2141 BTRFS_I(inode)->io_tree.track_uptodate = false; in btrfs_init_btree_inode()
4246 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.c1035 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1047 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1144 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1165 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc()
1296 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1352 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
Dqgroup.c3608 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range()
3732 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
3826 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
3857 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data()
4103 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
Dcompression.c521 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
/kernel/linux/linux-5.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()