Home
last modified time | relevance | path

Searched refs:io_tree (Results 1 - 25 of 32) sorted by relevance

12

/kernel/linux/linux-6.6/fs/btrfs/
H A Dinode.c1099 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1124 lock_extent(io_tree, start, end, NULL); in submit_one_async_extent()
1629 unlock_extent(&inode->io_tree, start, end, NULL); in run_delalloc_compressed()
1752 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
1789 count = count_range_bits(io_tree, &range_start, end, range_bytes, in fallback_to_cow()
1804 clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE, in fallback_to_cow()
2238 test_range_bit(&inode->io_tree, start, end, EXTENT_DEFRAG, in should_nocow()
2636 ret = set_extent_bit(&inode->io_tree, search_star in btrfs_find_new_delalloc_bytes()
3018 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_finish_one_ordered() local
4678 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_truncate_block() local
4871 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_cont_expand() local
5100 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; evict_inode_truncate_pages() local
7062 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; can_nocow_extent() local
7158 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; lock_extent_direct() local
8114 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_page_mkwrite() local
9839 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_encoded_read_inline() local
9995 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_encoded_read_regular() local
10057 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_encoded_read() local
10201 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_do_encoded_write() local
10580 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_swap_activate() local
[all...]
H A Ddefrag.c614 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
646 lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
649 unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
760 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_page()
762 unlock_extent(&inode->io_tree, page_start, page_end, in defrag_prepare_one_page()
894 if (test_range_bit(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets()
1040 clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1043 set_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1093 lock_extent(&inode->io_tree, start_inde in defrag_one_range()
[all...]
H A Dreflink.c98 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
623 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1, NULL); in btrfs_double_extent_unlock()
624 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1, NULL); in btrfs_double_extent_unlock()
642 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, range1_end, NULL); in btrfs_double_extent_lock()
643 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, range2_end, NULL); in btrfs_double_extent_lock()
H A Dfile.c158 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
995 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1006 lock_extent(&inode->io_tree, start_pos, last_pos, cached_state); in lock_and_cleanup_extent_if_need()
1014 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1099 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in btrfs_check_nocow_lock()
1391 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2210 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2226 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2723 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2996 unlock_extent(&BTRFS_I(inode)->io_tree, lockstar in btrfs_zero_range()
[all...]
H A Drelocation.c1134 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1142 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1584 lock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1586 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2890 clear_extent_bits(&inode->io_tree, i_size, in prealloc_file_extent_cluster()
2922 lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2928 unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2957 lock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2959 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
3059 lock_extent(&BTRFS_I(inode)->io_tree, clamped_star in relocate_one_page()
[all...]
H A Dordered-data.c1104 lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1117 unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1135 if (!try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1143 unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
H A Dfree-space-cache.c341 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
353 unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1162 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1174 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()
1473 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
H A Dextent_map.c991 lock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
1048 unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
H A Dextent_io.c326 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
418 clear_extent_bit(&inode->io_tree, start, end, clear_bits, NULL); in extent_clear_unlock_delalloc()
549 tree = &processed->inode->io_tree; in endio_readpage_release_extent()
988 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_do_readpage()
2339 struct extent_io_tree *tree = &btrfs_inode->io_tree; in try_release_extent_mapping()
2939 lock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in extent_fiemap()
3131 unlock_extent(&inode->io_tree, lockstart, lockend, &cached_state); in extent_fiemap()
H A Dbtrfs_inode.h58 * the file range, inode's io_tree).
93 /* the io_tree does range state (DIRTY, LOCKED etc) */
94 struct extent_io_tree io_tree; member
/kernel/linux/linux-5.10/fs/btrfs/
H A 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, star in need_force_cow()
2634 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_finish_ordered_io() local
2900 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_verify_data_csum() local
4572 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_truncate_block() local
4759 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_cont_expand() local
4988 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; evict_inode_truncate_pages() local
6606 struct extent_io_tree *io_tree = &inode->io_tree; btrfs_get_extent() local
7024 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; can_nocow_extent() local
7658 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_check_read_dio_bio() local
8347 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_page_mkwrite() local
10164 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; btrfs_swap_activate() local
[all...]
H A 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()
H A 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, lockstar in btrfs_punch_hole()
[all...]
H A Dextent-io-tree.h245 struct extent_io_tree *io_tree,
249 struct extent_io_tree *io_tree, u64 start,
H A Dextent_io.c271 * update the disk_i_size, but lockdep will complain because our io_tree we hold
1864 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()
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()
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, failre in clean_io_failure()
2219 free_io_failure(struct extent_io_tree *failure_tree, struct extent_io_tree *io_tree, struct io_failure_record *rec) free_io_failure() argument
2361 clean_io_failure(struct btrfs_fs_info *fs_info, struct extent_io_tree *failure_tree, struct extent_io_tree *io_tree, u64 start, struct page *page, u64 ino, unsigned int pg_offset) clean_io_failure() argument
[all...]
H A 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...]
H A Dbtrfs_inode.h51 * the file range, inode's io_tree).
76 /* the io_tree does range state (DIRTY, LOCKED etc) */
77 struct extent_io_tree io_tree; member
H A Dioctl.c1068 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
1085 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1162 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
1179 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent()
1181 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent()
1314 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1388 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1424 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_star in cluster_pages_for_defrag()
[all...]
H A 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()
H A 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 in btrfs_init_btree_inode()
[all...]
H A 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()
H A Dfree-space-cache.c1036 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1048 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1145 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1166 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc()
1297 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1353 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
/kernel/linux/linux-5.10/fs/btrfs/tests/
H A 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()
H A Dextent-io-tests.c80 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dinode-tests.c964 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1032 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1067 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1083 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()

Completed in 79 milliseconds

12