linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: convert btrfs_buffered_write() to folio interface
@ 2024-10-10  4:46 Qu Wenruo
  2024-10-10  4:46 ` [PATCH 1/2] btrfs: make buffered write to copy one page a time Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Qu Wenruo @ 2024-10-10  4:46 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
2.46.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-22  2:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  4:46 [PATCH 0/2] btrfs: convert btrfs_buffered_write() to folio interface Qu Wenruo
2024-10-10  4:46 ` [PATCH 1/2] btrfs: make buffered write to copy one page a time Qu Wenruo
2024-10-17  7:08   ` kernel test robot
2024-10-10  4:46 ` [PATCH 2/2] btrfs: convert btrfs_buffered_write() to use folio interface Qu Wenruo
2024-10-22  1:17 ` [PATCH 0/2] btrfs: convert btrfs_buffered_write() to " David Sterba
2024-10-22  2:35   ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).