]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix *__bch2_trans_subbuf_alloc() error path
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 19 Jun 2025 16:25:41 +0000 (12:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 19 Jun 2025 17:08:06 +0000 (13:08 -0400)
commitb2348fe6c81cc92c7d0bd8a7d9241f8de0fa72b7
tree0bb2298cd4b8173ceb773963b0259cdcfa0c9ea7
parent434635987fb7d544dd134f25c922413e19b02112
bcachefs: Fix *__bch2_trans_subbuf_alloc() error path

Don't change buf->size on error - this would usually be a transaction
restart, but it could also be -ENOMEM - when we've exceeded the bump
allocator max).

Fixes: 247abee6ae6d ("bcachefs: btree_trans_subbuf")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update.c