From: Kent Overstreet Date: Thu, 13 Oct 2022 04:24:17 +0000 (-0400) Subject: bcachefs: Fix bch2_write_begin() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3a4d3656e5620df8323448c7d33f4b1401ff14ec;p=linux.git bcachefs: Fix bch2_write_begin() An error case was jumping to the wrong label, creating an infinite loop - oops. This fixes fstests generic/648. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index f5517c31f120c..cca764cdb4f4e 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -1517,7 +1517,7 @@ out: if (!bch2_page_state_create(page, __GFP_NOFAIL)->uptodate) { ret = bch2_page_state_set(c, inode_inum(inode), &page, 1); if (ret) - goto out; + goto err; } ret = bch2_page_reservation_get(c, inode, page, res,