projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4040555
)
bcachefs: Fix bch2_write_begin()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Thu, 13 Oct 2022 04:24:17 +0000
(
00:24
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:43 +0000
(17:09 -0400)
An error case was jumping to the wrong label, creating an infinite loop
- oops.
This fixes fstests generic/648.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/fs-io.c
b/fs/bcachefs/fs-io.c
index f5517c31f120ca624cb3b5643e4e3393e78f98bc..cca764cdb4f4ee21989bf1fbff884bde6f56372f 100644
(file)
--- 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,