Home
last modified time | relevance | path

Searched refs:cached_state (Results 1 – 21 of 21) sorted by relevance

/fs/btrfs/
A Dextent-io-tree.c651 if (cached_state) { in btrfs_clear_extent_bit_changeset()
656 cached_state = NULL; in btrfs_clear_extent_bit_changeset()
789 if (cached_state && *cached_state) { in wait_extent_bit()
832 if (cached_state && *cached_state) { in wait_extent_bit()
834 *cached_state = NULL; in wait_extent_bit()
897 if (cached_state && *cached_state) { in btrfs_find_first_extent_bit()
918 *cached_state = NULL; in btrfs_find_first_extent_bit()
1086 if (cached_state && *cached_state) { in set_extent_bit()
1350 if (cached_state && *cached_state) { in btrfs_convert_extent_bit()
1682 if (!cached_state || !*cached_state) in btrfs_count_range_bits()
[all …]
A Dextent-io-tree.h167 struct extent_state **cached_state);
171 struct extent_state *cached_state);
174 struct extent_state **cached_state);
198 u32 bits, struct extent_state **cached_state);
210 struct extent_state **cached_state);
214 struct extent_state **cached_state);
221 struct extent_state **cached_state);
A Dfile.c926 cached_state); in lock_and_cleanup_extent_if_need()
935 cached_state); in lock_and_cleanup_extent_if_need()
1008 &cached_state); in btrfs_check_nocow_lock()
1271 &cached_state); in copy_one_range()
2000 &cached_state); in btrfs_page_mkwrite()
2278 cached_state); in btrfs_punch_hole_lock_range()
2293 cached_state); in btrfs_punch_hole_lock_range()
2784 &cached_state); in btrfs_punch_hole()
3066 &cached_state); in btrfs_zero_range()
3179 &cached_state); in btrfs_fallocate()
[all …]
A Ddirect-io.c34 struct extent_state **cached_state, in lock_extent_direct() argument
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()
54 cached_state)) { 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()
360 struct extent_state *cached_state = NULL; in btrfs_dio_iomap_begin() local
452 ret = lock_extent_direct(inode, lockstart, lockend, &cached_state, flags); in btrfs_dio_iomap_begin()
578 unlock_bits, &cached_state); in btrfs_dio_iomap_begin()
[all …]
A Ddefrag.c853 struct extent_state *cached_state = NULL; in defrag_prepare_one_folio() local
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()
1155 struct extent_state **cached_state) in defrag_one_locked_target() argument
1168 EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1170 EXTENT_DELALLOC | EXTENT_DEFRAG, cached_state); in defrag_one_locked_target()
1196 struct extent_state *cached_state = NULL; in defrag_one_range() local
1233 btrfs_lock_extent(&inode->io_tree, folio_pos(folios[0]), cur - 1, &cached_state); in defrag_one_range()
1249 &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()
A Dinode.c1763 &cached_state); in fallback_to_cow()
2717 cached_state); in btrfs_set_extent_delalloc()
2807 &cached_state); in btrfs_writepage_fixup_worker()
2815 &cached_state); in btrfs_writepage_fixup_worker()
3134 &cached_state); in btrfs_finish_one_ordered()
3220 &cached_state); in btrfs_finish_one_ordered()
3230 &cached_state); in btrfs_finish_one_ordered()
4996 &cached_state); in btrfs_truncate_block()
4999 &cached_state); in btrfs_truncate_block()
5134 &cached_state); in btrfs_cont_expand()
[all …]
A Dextent_io.c316 struct extent_state *cached_state = NULL; in find_lock_delalloc_range() local
331 max_bytes, &cached_state); in find_lock_delalloc_range()
337 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range()
363 btrfs_free_extent_state(cached_state); in find_lock_delalloc_range()
364 cached_state = NULL; in find_lock_delalloc_range()
380 EXTENT_DELALLOC, cached_state); in find_lock_delalloc_range()
1192 struct extent_state **cached_state) in lock_extents_for_read() argument
1197 ASSERT(cached_state); in lock_extents_for_read()
1240 struct extent_state *cached_state = NULL; in btrfs_read_folio() local
2592 struct extent_state *cached_state = NULL; in btrfs_readahead() local
[all …]
A Dreflink.c639 struct extent_state *cached_state = NULL; in btrfs_extent_same_range() local
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()
706 struct extent_state *cached_state = NULL; in btrfs_clone_files() local
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()
A Dordered-data.h219 struct extent_state **cached_state);
221 struct extent_state **cached_state);
A Dordered-data.c1177 struct extent_state **cached_state) in btrfs_lock_and_flush_ordered_range() argument
1183 if (cached_state) in btrfs_lock_and_flush_ordered_range()
1184 cachedp = cached_state; in btrfs_lock_and_flush_ordered_range()
1196 if (!cached_state) in btrfs_lock_and_flush_ordered_range()
1214 struct extent_state **cached_state) in btrfs_try_lock_ordered_range() argument
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()
A Dbtrfs_inode.h570 struct extent_state **cached_state);
640 struct extent_state **cached_state,
644 struct extent_state **cached_state,
A Dtransaction.c1128 struct extent_state *cached_state = NULL; in btrfs_write_marked_extents() local
1133 mark, &cached_state)) { in btrfs_write_marked_extents()
1138 mark, &cached_state); in btrfs_write_marked_extents()
1160 btrfs_free_extent_state(cached_state); in btrfs_write_marked_extents()
1163 cached_state = NULL; in btrfs_write_marked_extents()
1179 struct extent_state *cached_state = NULL; in __btrfs_wait_marked_extents() local
1185 EXTENT_NEED_WAIT, &cached_state)) { in __btrfs_wait_marked_extents()
1195 EXTENT_NEED_WAIT, &cached_state); in __btrfs_wait_marked_extents()
1200 btrfs_free_extent_state(cached_state); in __btrfs_wait_marked_extents()
1203 cached_state = NULL; in __btrfs_wait_marked_extents()
A Drelocation.c930 struct extent_state *cached_state = NULL; in replace_file_extents() local
942 end, &cached_state); in replace_file_extents()
950 &cached_state); in replace_file_extents()
1356 struct extent_state *cached_state = NULL; in invalidate_extent_cache() local
2715 struct extent_state *cached_state = NULL; in prealloc_file_extent_cluster() local
2745 struct extent_state *cached_state = NULL; in setup_relocation_extent_mapping() local
2871 struct extent_state *cached_state = NULL; in relocate_one_folio() local
2888 clamped_end, &cached_state); in relocate_one_folio()
2890 clamped_end, 0, &cached_state); in relocate_one_folio()
2895 &cached_state); in relocate_one_folio()
[all …]
A Dfile.h46 struct extent_state **cached_state,
A Dfiemap.c635 struct extent_state *cached_state = NULL; in extent_fiemap() local
664 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()
A Dioctl.c4414 struct extent_state *cached_state = NULL; in btrfs_ioctl_encoded_read() local
4467 ret = btrfs_encoded_read(&kiocb, &iter, &args, &cached_state, in btrfs_ioctl_encoded_read()
4483 &cached_state, disk_bytenr, in btrfs_ioctl_encoded_read()
4488 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_ioctl_encoded_read()
4629 struct extent_state *cached_state; member
4713 struct extent_state *cached_state, in btrfs_uring_read_extent() argument
4746 priv->cached_state = cached_state; in btrfs_uring_read_extent()
4775 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_read_extent()
4793 struct extent_state *cached_state = NULL; in btrfs_uring_encoded_read() local
4898 btrfs_unlock_extent(io_tree, start, lockend, &cached_state); in btrfs_uring_encoded_read()
[all …]
A Dfree-space-cache.c306 struct extent_state *cached_state = NULL; in btrfs_truncate_free_space_cache() local
339 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()
1287 struct extent_state **cached_state) in cleanup_write_cache_enospc() argument
1291 cached_state); in cleanup_write_cache_enospc()
1380 struct extent_state *cached_state = NULL; in __btrfs_write_out_cache() local
1417 &cached_state); in __btrfs_write_out_cache()
1463 dirty_start, dirty_len, &cached_state, false); in __btrfs_write_out_cache()
1478 &cached_state); in __btrfs_write_out_cache()
1500 cleanup_write_cache_enospc(inode, io_ctl, &cached_state); in __btrfs_write_out_cache()
A Dextent-tree.c2829 struct extent_state *cached_state = NULL; in btrfs_finish_extent_commit() local
2838 while (!TRANS_ABORTED(trans) && cached_state) { in btrfs_finish_extent_commit()
2845 next_state = btrfs_next_extent_state(unpin, cached_state); in btrfs_finish_extent_commit()
2865 btrfs_free_extent_state(cached_state); in btrfs_finish_extent_commit()
2871 cached_state = NULL; in btrfs_finish_extent_commit()
2874 EXTENT_DIRTY, &cached_state); in btrfs_finish_extent_commit()
2876 cached_state = next_state; in btrfs_finish_extent_commit()
2877 if (cached_state) { in btrfs_finish_extent_commit()
2878 start = cached_state->start; in btrfs_finish_extent_commit()
2879 end = cached_state->end; in btrfs_finish_extent_commit()
[all …]
A Ddev-replace.c789 struct extent_state *cached_state = NULL; in btrfs_set_target_alloc_state() local
799 CHUNK_ALLOCATED, &cached_state)) { in btrfs_set_target_alloc_state()
807 btrfs_free_extent_state(cached_state); in btrfs_set_target_alloc_state()
A Ddisk-io.c4664 struct extent_state *cached_state = NULL; in btrfs_destroy_pinned_extent() local
4674 EXTENT_DIRTY, &cached_state)) { in btrfs_destroy_pinned_extent()
4679 btrfs_clear_extent_dirty(unpin, start, end, &cached_state); in btrfs_destroy_pinned_extent()
4680 btrfs_free_extent_state(cached_state); in btrfs_destroy_pinned_extent()
A Dtree-log.c4337 struct extent_state *cached_state = NULL; in log_csums() local
4355 &cached_state); in log_csums()
4372 &cached_state); in log_csums()

Completed in 103 milliseconds