]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: fix disk reservation accounting in bch2_folio_reservation_get()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 14 Oct 2024 21:55:48 +0000 (17:55 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Oct 2024 04:49:48 +0000 (00:49 -0400)
commit81e0b6c7c1f75c914dede330121391f57f216a6e
tree06b8cf4cd98db3bb55936f81c3b716c3e900e75e
parent4007bbb203a0c36e66bb2e785e1b2cb7266179d5
bcachefs: fix disk reservation accounting in bch2_folio_reservation_get()

bch2_disk_reservation_put() zeroes out the reservation - oops.

This fixes a disk reservation leak when getting a quota reservation
returned an error.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io-pagecache.c