Skip to content

btrfs: fix __folio_put refcount errors

Boris Burkov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 4 repliesIn review

Changes in v3 from the cover letter

- split up patches for backporting

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix __folio_put refcount in btrfs_do_encoded_writefs/btrfs/inode.c+1 -12 replies
2/2btrfs: fix __folio_put refcount in __alloc_dummy_extent_bufferfs/btrfs/extent_io.c+1 -10 replies

Reviews trailers per patch

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

PatchQu WenruoFilipe MananaDavid Sterba
SeriesR-b R-b
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] btrfs: fix __folio_put refcount errors

Switching from __free_page to __folio_put introduced a bug because __free_page called put_page_testzero while __folio_put does not. Fix the two affected callers by changing to folio_put which does call put_folio_testzero.
--
Changelog:
v3:
- split up patches for backporting
v2:
- add second callsite

Boris Burkov (2):
btrfs: fix __folio_put refcount in btrfs_do_encoded_write
btrfs: fix __folio_put refcount in __alloc_dummy_extent_buffer

 fs/btrfs/extent_io.c | 2 +-
 fs/btrfs/inode.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.45.2