Skip to content

btrfs: convert btrfs_buffered_write() to folio interface

Qu Wenruo linux-btrfs oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: make buffered write to copy one page a timefs/btrfs/file.c fs/btrfs/file.h fs/btrfs/free-space-cache.c+98 -1590 replies
2/2btrfs: convert btrfs_buffered_write() to use folio interfacefs/btrfs/file.c fs/btrfs/file.h fs/btrfs/free-space-cache.c+60 -710 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: convert btrfs_buffered_write() to folio interface

Inspired by generic_perform_write(), convert btrfs_buffered_write() to go a page-by-page iteration, then convert it to use folio interface.

This should provide the basis for use to go address_operations->write_begin() and write_end() callbacks.

There is a tiny timing change.
Before this patchset we wait for the page writeback after we get an uptodate or no need to read the page.

But now we follow the regular FGP_WRITEBEGIN, which implies FGP_STABLE and will wait for writeback before reading the page.

Qu Wenruo (2):
btrfs: make buffered write to copy one page a time
btrfs: convert btrfs_buffered_write() to use folio interface

 fs/btrfs/file.c             | 259 +++++++++++++-----------------------
 fs/btrfs/file.h             |   2 +-
 fs/btrfs/free-space-cache.c |  15 ++-
 3 files changed, 102 insertions(+), 174 deletions(-)
Signature · 1 line
2.46.2