diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-18 17:54:56 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:54 -0400 |
commit | bae895a5a3300c2da605dd0c841e175c4c9e5872 (patch) | |
tree | c81275a283c8e4dfe2d66465c6899c1840928c73 /fs/bcachefs/alloc_background.h | |
parent | 51c66fedc0ea4a16d5d45f94a619c43897018da8 (diff) | |
download | linux-bae895a5a3300c2da605dd0c841e175c4c9e5872.tar.gz linux-bae895a5a3300c2da605dd0c841e175c4c9e5872.tar.bz2 linux-bae895a5a3300c2da605dd0c841e175c4c9e5872.zip |
bcachefs: Add allocator thread state to sysfs
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_background.h')
-rw-r--r-- | fs/bcachefs/alloc_background.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_background.h b/fs/bcachefs/alloc_background.h index 6fededcd9f86..73e1c27c96e3 100644 --- a/fs/bcachefs/alloc_background.h +++ b/fs/bcachefs/alloc_background.h @@ -6,6 +6,8 @@ #include "alloc_types.h" #include "debug.h" +extern const char * const bch2_allocator_states[]; + struct bkey_alloc_unpacked { u64 bucket; u8 dev; @@ -100,7 +102,7 @@ static inline void bch2_wake_allocator(struct bch_dev *ca) p = rcu_dereference(ca->alloc_thread); if (p) { wake_up_process(p); - ca->allocator_state = ALLOCATOR_RUNNING; + ca->allocator_state = ALLOCATOR_running; } rcu_read_unlock(); } |