diff options
| author | Qu Wenruo <[email protected]> | 2025-03-20 03:23:27 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:39 +0000 |
| commit | ced47a4db4bf823419a68f36943d243fb6ae4bb1 (patch) | |
| tree | 78ed1de72893c8cf8af3eab23e0ffab1aa532b94 /fs/btrfs/extent_io.c | |
| parent | btrfs: factor out space reservation code from btrfs_buffered_write() (diff) | |
| download | kernel-ced47a4db4bf823419a68f36943d243fb6ae4bb1.tar.gz kernel-ced47a4db4bf823419a68f36943d243fb6ae4bb1.zip | |
btrfs: factor out the main loop of btrfs_buffered_write() into a helper
Inside the main loop of btrfs_buffered_write() we are doing a lot of
heavy lifting inside a while() loop.
This makes it pretty hard to read, factor out the content into a helper,
copy_one_range() to do the work.
This has no functional change, but with some minor variable renames,
e.g. rename all "sector" into "block".
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Filipe Manana <[email protected]>
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/extent_io.c')
0 files changed, 0 insertions, 0 deletions
