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_types.h | |
parent | 51c66fedc0ea4a16d5d45f94a619c43897018da8 (diff) | |
download | linux-stable-bae895a5a3300c2da605dd0c841e175c4c9e5872.tar.gz linux-stable-bae895a5a3300c2da605dd0c841e175c4c9e5872.tar.bz2 linux-stable-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_types.h')
-rw-r--r-- | fs/bcachefs/alloc_types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index be164d6108bb..4a1cd8b73d16 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -10,6 +10,18 @@ struct ec_bucket_buf; +#define ALLOC_THREAD_STATES() \ + x(stopped) \ + x(running) \ + x(blocked) \ + x(blocked_full) + +enum allocator_states { +#define x(n) ALLOCATOR_##n, + ALLOC_THREAD_STATES() +#undef x +}; + enum alloc_reserve { RESERVE_BTREE_MOVINGGC = -2, RESERVE_BTREE = -1, |