projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2776369
)
bcachefs: Add a bch_page_state assert
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 27 Mar 2023 19:16:24 +0000
(15:16 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:59 +0000
(17:09 -0400)
Seeing an odd bug with page/folio state not being properly initialized,
this is to help track it down.
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
d98b654
..
e25dbbf
100644
(file)
--- a/
fs/bcachefs/fs-io.c
+++ b/
fs/bcachefs/fs-io.c
@@
-2682,6
+2682,8
@@
static int __bch2_truncate_page(struct bch_inode_info *inode,
goto unlock;
}
+ BUG_ON(!s->uptodate);
+
if (index != start >> PAGE_SHIFT)
start_offset = 0;
if (index != end >> PAGE_SHIFT)