diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-09 07:23:50 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:31 +0200 |
commit | 84c72755b9aab31ed43e50eb5c7229d7ef042f7d (patch) | |
tree | 71dec50f00068356f9707de15b9f77d29ecf2d0b /fs/bcachefs/ec.h | |
parent | bcachefs: Use a genradix for reading journal entries (diff) | |
download | linux-84c72755b9aab31ed43e50eb5c7229d7ef042f7d.tar.xz linux-84c72755b9aab31ed43e50eb5c7229d7ef042f7d.zip |
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>
Diffstat (limited to 'fs/bcachefs/ec.h')
-rw-r--r-- | fs/bcachefs/ec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index af7f8eee94b0..a4c13d61af10 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -224,6 +224,7 @@ void bch2_stripes_heap_to_text(struct printbuf *, struct bch_fs *); void bch2_new_stripes_to_text(struct printbuf *, struct bch_fs *); void bch2_fs_ec_exit(struct bch_fs *); +void bch2_fs_ec_init_early(struct bch_fs *); int bch2_fs_ec_init(struct bch_fs *); #endif /* _BCACHEFS_EC_H */ |