mbox series

[v2,0/3] btrfs: btrfs_buffered_write() cleanups

Message ID cover.1731396107.git.wqu@suse.com (mailing list archive)
Headers show
Series btrfs: btrfs_buffered_write() cleanups | expand

Message

Qu Wenruo Nov. 12, 2024, 7:23 a.m. UTC
This series is to cleanup btrfs_buffered_write() so that it's more
aligned to iomap_writer_iter(), and makes later migration a little
easier.

All those changes are inside btrfs, and the last 2 should improve the
readablity, and prepare for the migration (since everything is now done
inside the loop).

Qu Wenruo (3):
  btrfs: make buffered write to respect fatal signals
  btrfs: cleanup the variables inside btrfs_buffered_write()
  btrfs: remove the out-of-loop cleanup from btrfs_buffered_write()

 fs/btrfs/file.c | 90 ++++++++++++++++++++++++++-----------------------
 1 file changed, 47 insertions(+), 43 deletions(-)

Comments

Qu Wenruo Nov. 12, 2024, 7:26 a.m. UTC | #1
在 2024/11/12 17:53, Qu Wenruo 写道:
> This series is to cleanup btrfs_buffered_write() so that it's more
> aligned to iomap_writer_iter(), and makes later migration a little
> easier.
> 
> All those changes are inside btrfs, and the last 2 should improve the
> readablity, and prepare for the migration (since everything is now done
> inside the loop).

Changelog:
v2:
- Change the migration target from aops->write_begin() to iomap
   Otherwise no code changes


> 
> Qu Wenruo (3):
>    btrfs: make buffered write to respect fatal signals
>    btrfs: cleanup the variables inside btrfs_buffered_write()
>    btrfs: remove the out-of-loop cleanup from btrfs_buffered_write()
> 
>   fs/btrfs/file.c | 90 ++++++++++++++++++++++++++-----------------------
>   1 file changed, 47 insertions(+), 43 deletions(-)
>