diff options
author | Josef Bacik <josef@toxicpanda.com> | 2025-08-26 11:39:01 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-08-29 15:00:30 +0200 |
commit | 9a98f9e84cfbeaa51af42ba2b8bbbde046c709a7 (patch) | |
tree | 2f7a82ce36258d2308d46ba0ac5cfc408447d7e8 /scripts/gdb/linux/proc.py | |
parent | bc986b1d756482a5ec2d7d9625229d9b9df95ae1 (diff) |
fs: make the i_state flags an enum
Adjusting i_state flags always means updating the values manually. Bring
these forward into the 2020's and make a nice clean macro for defining
the i_state values as an enum, providing __ variants for the cases where
we need the bit position instead of the actual value, and leaving the
actual NAME as the 1U << bit value.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/0da9348da6ece0dce12fccec07b1dd2b8e4cfdab.1756222464.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions