bcachefs: Run bch2_fs_counters_init() earlier
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 Sep 2022 02:26:48 +0000 (22:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:41 +0000 (17:09 -0400)
commitf3b8403ee70e5dcce5a16d3517b411bd8839319b
tree1e0c3d0d5bef54c9407279ff9ea787fc685eee90
parentd704d62355b76e3f1f7efbe9b3072627fd4b4a3f
bcachefs: Run bch2_fs_counters_init() earlier

We need counters to be initialized before initializing shrinkers - the
shrinker callbacks will update those counters. This fixes a segfault in
userspace.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c