All of lore.kernel.org
 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; 8+ 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] 8+ messages in thread
* [PATCH v3 0/2] btrfs: fix __folio_put refcount errors
@ 2024-07-03 18:47 Ed T.
  0 siblings, 0 replies; 8+ messages in thread
From: Ed T. @ 2024-07-03 18:47 UTC (permalink / raw)
  To: Boris Burkov; +Cc: linux-btrfs

From: Filipe Manana <fdmanana@kernel.org>
To: Boris Burkov <boris@bur.io>
Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH v3 0/2] btrfs: fix __folio_put refcount errors
Date: Tue, 2 Jul 2024 15:41:19 +0100 [thread overview]
Message-ID: <CAL3q7H7Gu2SQV+V1WMuVsuMmffAyKVTC5miagZVeitVQps6YuA@mail.gmail.com>
(raw)
In-Reply-To: <cover.1719930430.git.boris@bur.io>

On Tue, Jul 2, 2024 at 3:32 PM Boris Burkov <boris@bur.io> wrote:
>
> 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(-)

(resent as plaintext)

For both patches:

Tested-by: Ed Tomlinson <edtoml@gmail.com>

In both 6.10-rc5 & rc6 I was seeing many 'bad page' errors in my logs
during my backups, which create, send & delete snapshots.  With these
patches applied to rc6 the logs are clean.

Thanks
Ed Tomlinson

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

end of thread, other threads:[~2024-07-03 18:48 UTC | newest]

Thread overview: 8+ 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
  -- strict thread matches above, loose matches on Subject: below --
2024-07-03 18:47 Ed T.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.