From: Kent Overstreet Date: Wed, 16 Oct 2024 08:11:15 +0000 (-0400) Subject: bcachefs: fix restart handling in __bch2_resume_logged_op_finsert() X-Git-Tag: microblaze-v6.16~793^2~30 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=29fd10a36a6326aba134cc0ea9def8d4601279d0;p=linux-2.6-microblaze.git bcachefs: fix restart handling in __bch2_resume_logged_op_finsert() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/io_misc.c b/fs/bcachefs/io_misc.c index 307ed0a45184..f283051758d6 100644 --- a/fs/bcachefs/io_misc.c +++ b/fs/bcachefs/io_misc.c @@ -377,7 +377,7 @@ static int __bch2_resume_logged_op_finsert(struct btree_trans *trans, * check for missing subvolume before fpunch, as in resume we don't want * it to be a fatal error */ - ret = __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn_errors); + ret = lockrestart_do(trans, __bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot, warn_errors)); if (ret) return ret;