bcachefs: Initialize ec work structs early
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 9 Apr 2022 05:23:50 +0000 (01:23 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
commit84c72755b9aab31ed43e50eb5c7229d7ef042f7d
tree71dec50f00068356f9707de15b9f77d29ecf2d0b
parentce6201c456571d919e722eec3c17f868f0575b05
bcachefs: Initialize ec work structs early

We need to ensure that work structs in bch_fs always get initialized -
otherwise an error in filesystem initialization can pop a warning in the
workqueue code when we try to cancel a work struct that wasn't
initialized.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/ec.c
fs/bcachefs/ec.h
fs/bcachefs/super.c