summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-01-13 13:53:41 +1030
committerDavid Sterba <dsterba@suse.com>2025-03-18 20:35:41 +0100
commit10326fdcb3ace2f2dcbc8b9fc50b87e5cab93345 (patch)
tree99eba1b5c73e2bf14bf29b1ede844bb0870466bd /fs/btrfs/compression.c
parentecde48a1a6b3256bd49db8780bf37556b157783c (diff)
btrfs: factor out nocow ordered extent and extent map generation into a helper
Currently we're doing all the ordered extent and extent map generation inside a while() loop of run_delalloc_nocow(). This makes it pretty hard to read, nor doing proper error handling. So move that part of code into a helper, nocow_one_range(). This should not change anything, but there is a tiny timing change where btrfs_dec_nocow_writers() is only called after nocow_one_range() helper exits. This timing change is small, and makes error handling easier, thus should be fine. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions