Commit 3a4d3656 authored by Kent Overstreet's avatar Kent Overstreet

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 40405557
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment