Skip to content

btrfs: drop premature generation setting in btrfs_init_new_buffer()

Sun YangKai linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: add comment for btrfs_clear_buffer_dirtyfs/btrfs/extent_io.c+20 -00 replies
2/2btrfs: drop premature generation setting in btrfs_init_new_buffer()fs/btrfs/extent-tree.c+2 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBoris Burkov
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: drop premature generation setting in btrfs_init_new_buffer()

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(-)
Signature · 1 line
2.51.2