From: Sun YangKai <sunk67188@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Sun YangKai <sunk67188@gmail.com>
Subject: [PATCH 0/2] btrfs: drop premature generation setting in btrfs_init_new_buffer()
Date: Thu, 20 Nov 2025 21:57:02 +0800 [thread overview]
Message-ID: <20251120140030.2770-2-sunk67188@gmail.com> (raw)
In btrfs_init_new_buffer(), we set the buffer's generation just for the check in
btrfs_clear_buffer_dirty(). So just pass NULL to skip the check and we don't need
to set the generation before erasing the buffer.
No functional change.
See commit messages for details.
Sun YangKai (2):
btrfs: add comment for btrfs_clear_buffer_dirty
btrfs: drop premature generation setting in btrfs_init_new_buffer()
fs/btrfs/extent-tree.c | 6 ++----
fs/btrfs/extent_io.c | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 4 deletions(-)
--
2.51.2
next reply other threads:[~2025-11-20 14:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 13:57 Sun YangKai [this message]
2025-11-20 13:57 ` [PATCH 1/2] btrfs: add comment for btrfs_clear_buffer_dirty Sun YangKai
2025-11-20 13:57 ` [PATCH 2/2] btrfs: drop premature generation setting in btrfs_init_new_buffer() Sun YangKai
2025-11-20 18:57 ` [PATCH 0/2] " Boris Burkov
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=20251120140030.2770-2-sunk67188@gmail.com \
--to=sunk67188@gmail.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