projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d93ff5f
)
bcachefs: Fix debug assert
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 25 May 2024 04:53:25 +0000
(
00:53
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 26 May 2024 16:40:30 +0000
(12:40 -0400)
Reported-by: syzbot+a8074a75b8d73328751e@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/super.c
b/fs/bcachefs/super.c
index 2206a8dee693ab1ce183ec621860c72fcf5bb7e9..df2bea38e83f0ff8996b4df57fec86374dfdf34c 100644
(file)
--- a/
fs/bcachefs/super.c
+++ b/
fs/bcachefs/super.c
@@
-564,7
+564,7
@@
static void __bch2_fs_free(struct bch_fs *c)
BUG_ON(atomic_read(&c->journal_keys.ref));
bch2_fs_btree_write_buffer_exit(c);
percpu_free_rwsem(&c->mark_lock);
- EBUG_ON(percpu_u64_get(c->online_reserved));
+ EBUG_ON(
c->online_reserved &&
percpu_u64_get(c->online_reserved));
free_percpu(c->online_reserved);
darray_exit(&c->btree_roots_extra);