bcachefs: handle failed data_update_init cleanup
authorDaniel Hill <daniel@gluo.nz>
Thu, 8 Dec 2022 23:37:56 +0000 (12:37 +1300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commitf3a37e76cade1469871c4309584ebbc358becf40
tree9dce0999433112973b65c41552cc017aea5a009d
parent71fe14655f49f717b06d92192f2492c22da6b3af
bcachefs: handle failed data_update_init cleanup

data_update_init allocates several resources, but we forget to clean
these up when it fails.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/data_update.c