All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Burkov <boris@bur.io>
To: linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: [PATCH v3 0/2] btrfs: fix __folio_put refcount errors
Date: Tue,  2 Jul 2024 07:31:12 -0700	[thread overview]
Message-ID: <cover.1719930430.git.boris@bur.io> (raw)

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


             reply	other threads:[~2024-07-02 14:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-02 14:31 Boris Burkov [this message]
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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1719930430.git.boris@bur.io \
    --to=boris@bur.io \
    --cc=kernel-team@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.