btrfs: convert btrfs_buffered_write() to folio interface
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: make buffered write to copy one page a timefs/ fs/ fs/ | +98 | 0 replies | |
| 2/2 | btrfs: convert btrfs_buffered_write() to use folio interfacefs/ fs/ fs/ | +60 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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