]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
bcachefs: fix restart handling in __bch2_resume_logged_op_finsert()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 16 Oct 2024 08:11:15 +0000 (04:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Oct 2024 04:49:48 +0000 (00:49 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_misc.c

index 307ed0a45184497576956c2bf15222f72dc126a4..f283051758d6d5fb1e6ecc9bb4acb9e6bf1a804d 100644 (file)
@@ -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;