Boris Burkov de95dd6b4d btrfs: fix folio refcount in __alloc_dummy_extent_buffer()
commit a56c85fa2d59ab0780514741550edf87989a66e9 upstream.

Another improper use of __folio_put() in an error path after freshly
allocating pages/folios which returns them with the refcount initialized
to 1. The refactor from __free_pages() -> __folio_put() (instead of
folio_put) removed a refcount decrement found in __free_pages() and
folio_put but absent from __folio_put().

Fixes: 13df3775efca ("btrfs: cleanup metadata page pointer usage")
CC: stable@vger.kernel.org # 6.8+
Tested-by: Ed Tomlinson <edtoml@gmail.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-11 12:51:15 +02:00
..
2024-03-04 16:24:46 +01:00
2024-03-05 17:13:23 +01:00
2024-03-12 12:28:34 -07:00
2024-05-02 10:49:12 -07:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2024-05-02 10:49:12 -07:00
2024-03-12 12:28:34 -07:00