public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: drop premature generation setting in btrfs_init_new_buffer()
@ 2025-11-20 13:57 Sun YangKai
  2025-11-20 13:57 ` [PATCH 1/2] btrfs: add comment for btrfs_clear_buffer_dirty Sun YangKai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sun YangKai @ 2025-11-20 13:57 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Sun YangKai

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


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

end of thread, other threads:[~2025-11-20 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 13:57 [PATCH 0/2] btrfs: drop premature generation setting in btrfs_init_new_buffer() Sun YangKai
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox