aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2023-08-29 07:14:25 +0000
committerDavid Sterba <[email protected]>2023-10-12 14:44:02 +0000
commit1c94674b25cfb2c51b73ff156ca5e08e0f9f398e (patch)
treef8682a88e89f483594b69cef980d38a0a213ffd8 /fs/btrfs/async-thread.c
parentbtrfs: sipmlify uuid parameters of alloc_fs_devices() (diff)
downloadkernel-1c94674b25cfb2c51b73ff156ca5e08e0f9f398e.tar.gz
kernel-1c94674b25cfb2c51b73ff156ca5e08e0f9f398e.zip
btrfs: do not require EXTENT_NOWAIT for btrfs_redirty_list_add()
The flag EXTENT_NOWAIT is a special flag to notify extent-io-tree code that this operation should not sleep for the extent state preallocation. However for btrfs_redirty_list_add(), all callers are able to sleep: - clean_log_buffer() Just 2 lines before, we call btrfs_pin_reserved_extent(), which calls pin_down_extent(), and that function does not require EXTENT_NOWAIT. Thus we're safe to call it without EXTENT_NOWAIT. - btrfs_free_tree_block() This function have several call sites which trigger tree read, e.g. walk_up_proc(), thus we're safe to call it without EXTENT_NOWAIT. Thus there is no need to require EXTENT_NOWAIT flag. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions