diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index f5517c31f120..cca764cdb4f4 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -1517,7 +1517,7 @@ int bch2_write_begin(struct file *file, struct address_space *mapping, 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,