Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] btrfs: fix __folio_put refcount errors
@ 2024-07-02 14:31 Boris Burkov
  2024-07-02 14:31 ` [PATCH v3 1/2] btrfs: fix __folio_put refcount in btrfs_do_encoded_write Boris Burkov
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Boris Burkov @ 2024-07-02 14:31 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-07-02 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02 14:31 [PATCH v3 0/2] btrfs: fix __folio_put refcount errors Boris Burkov
2024-07-02 14:31 ` [PATCH v3 1/2] btrfs: fix __folio_put refcount in btrfs_do_encoded_write Boris Burkov
2024-07-02 16:19   ` David Sterba
2024-07-02 16:51     ` Boris Burkov
2024-07-02 14:31 ` [PATCH v3 2/2] btrfs: fix __folio_put refcount in __alloc_dummy_extent_buffer Boris Burkov
2024-07-02 14:41 ` [PATCH v3 0/2] btrfs: fix __folio_put refcount errors Filipe Manana
2024-07-02 17:23 ` David Sterba

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