From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: convert btrfs_buffered_write() to folio interface
Date: Thu, 10 Oct 2024 15:16:11 +1030 [thread overview]
Message-ID: <cover.1728532438.git.wqu@suse.com> (raw)
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
next reply other threads:[~2024-10-10 4:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 4:46 Qu Wenruo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1728532438.git.wqu@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).