Lines Matching refs:cached_state

1709 	struct extent_state *cached_state = NULL;  in fallback_to_cow()  local
1746 btrfs_lock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
1763 &cached_state); in fallback_to_cow()
1765 btrfs_unlock_extent(io_tree, start, end, &cached_state); in fallback_to_cow()
2069 struct extent_state *cached_state = NULL; in run_delalloc_nocow() local
2206 ret = nocow_one_range(inode, locked_folio, &cached_state, in run_delalloc_nocow()
2663 struct extent_state **cached_state) in btrfs_find_new_delalloc_bytes() argument
2689 EXTENT_DELALLOC_NEW, cached_state); in btrfs_find_new_delalloc_bytes()
2701 struct extent_state **cached_state) in btrfs_set_extent_delalloc() argument
2717 cached_state); in btrfs_set_extent_delalloc()
2723 EXTENT_DELALLOC | extra_bits, cached_state); in btrfs_set_extent_delalloc()
2738 struct extent_state *cached_state = NULL; in btrfs_writepage_fixup_worker() local
2798 btrfs_lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
2807 &cached_state); in btrfs_writepage_fixup_worker()
2815 &cached_state); in btrfs_writepage_fixup_worker()
2833 btrfs_unlock_extent(&inode->io_tree, page_start, page_end, &cached_state); in btrfs_writepage_fixup_worker()
3082 struct extent_state *cached_state = NULL; in btrfs_finish_one_ordered() local
3134 &cached_state); in btrfs_finish_one_ordered()
3220 &cached_state); in btrfs_finish_one_ordered()
3230 &cached_state); in btrfs_finish_one_ordered()
4866 struct extent_state *cached_state = NULL; in btrfs_truncate_block() local
4982 btrfs_lock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4986 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4996 &cached_state); in btrfs_truncate_block()
4999 &cached_state); in btrfs_truncate_block()
5001 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5031 EXTENT_NORESERVE, &cached_state); in btrfs_truncate_block()
5033 btrfs_unlock_extent(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5113 struct extent_state *cached_state = NULL; in btrfs_cont_expand() local
5134 &cached_state); in btrfs_cont_expand()
5191 btrfs_unlock_extent(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5363 struct extent_state *cached_state = NULL; in evict_inode_truncate_pages() local
5375 btrfs_lock_extent(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5391 &cached_state); in evict_inode_truncate_pages()
7445 struct extent_state *cached_state = NULL; in btrfs_invalidate_folio() local
7485 btrfs_lock_extent(tree, page_start, page_end, &cached_state); in btrfs_invalidate_folio()
7544 EXTENT_DEFRAG, &cached_state); in btrfs_invalidate_folio()
7590 &cached_state); in btrfs_invalidate_folio()
7687 struct extent_state *cached_state = NULL; in btrfs_truncate() local
7692 btrfs_lock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
7707 btrfs_unlock_extent(&inode->io_tree, lock_start, (u64)-1, &cached_state); in btrfs_truncate()
9239 struct extent_state **cached_state, in btrfs_encoded_read_inline() argument
9309 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_inline()
9430 struct extent_state **cached_state, in btrfs_encoded_read_regular() argument
9457 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read_regular()
9494 struct extent_state **cached_state, in btrfs_encoded_read() argument
9534 if (!btrfs_try_lock_extent(io_tree, start, lockend, cached_state)) { in btrfs_encoded_read()
9543 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9556 btrfs_lock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9562 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9583 cached_state, extent_start, in btrfs_encoded_read()
9637 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9653 btrfs_unlock_extent(io_tree, start, lockend, cached_state); in btrfs_encoded_read()
9668 struct extent_state *cached_state = NULL; in btrfs_do_encoded_write() local
9800 btrfs_lock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9807 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9872 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
9897 btrfs_unlock_extent(io_tree, start, end, &cached_state); in btrfs_do_encoded_write()
10049 struct extent_state *cached_state = NULL; in btrfs_swap_activate() local
10162 btrfs_lock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10340 btrfs_unlock_extent(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()