Message ID | 8f9b14a270b3e2e9445ece62962a1f7ee3eae555.1670451918.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | extent buffer dirty cleanups | expand |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index c85af644e353..971b1de50d9e 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4897,9 +4897,6 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, !test_bit(BTRFS_ROOT_RESET_LOCKDEP_CLASS, &root->state)) lockdep_owner = BTRFS_FS_TREE_OBJECTID; - /* btrfs_clean_tree_block() accesses generation field. */ - btrfs_set_header_generation(buf, trans->transid); - /* * This needs to stay, because we could allocate a freed block from an * old tree into a new tree, so we need to make sure this new block is
We were doing this before to deal with possible uninitialized pages which was reported by syzbot. Now that btrfs_clean_tree_block no longer checks the header generation simply remove this extra init. Signed-off-by: Josef Bacik <josef@toxicpanda.com> --- fs/btrfs/extent-tree.c | 3 --- 1 file changed, 3 deletions(-)