From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: small cleanups to buffered write path
Date: Mon, 30 Sep 2024 11:20:28 +0930 [thread overview]
Message-ID: <cover.1727660754.git.wqu@suse.com> (raw)
These two are small cleanups to the buffered write path, inspired by the
test btrfs failure of generic/563 with 4K sector size and 64K page size.
The root cause of that failure is, btrfs can't avoid full page read when
the dirty range covers sectors, but not yet the full page.
This is only the preparation part, we can not yet switch to the skip the
full page read, or it will still lead to incorrect data.
The full fix needs extra co-operation between the subpage read and
write, until then prepare_uptodate_page() still needs to read the full
page.
Qu Wenruo (2):
btrfs: remove the dirty_page local variable
btrfs: simplify the page uptodate preparation for prepare_pages()
fs/btrfs/file.c | 87 +++++++++++++++++++------------------
fs/btrfs/file.h | 2 +-
fs/btrfs/free-space-cache.c | 2 +-
3 files changed, 46 insertions(+), 45 deletions(-)
--
2.46.1
next reply other threads:[~2024-09-30 1:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 1:50 Qu Wenruo [this message]
2024-09-30 1:50 ` [PATCH 1/2] btrfs: remove the dirty_page local variable Qu Wenruo
2024-09-30 18:01 ` Josef Bacik
2024-09-30 1:50 ` [PATCH 2/2] btrfs: simplify the page uptodate preparation for prepare_pages() Qu Wenruo
2024-09-30 18:04 ` Josef Bacik
2024-10-01 15:20 ` David Sterba
2024-10-01 21:09 ` 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.1727660754.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).