]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: make the i_state flags an enum
authorJosef Bacik <josef@toxicpanda.com>
Tue, 26 Aug 2025 15:39:01 +0000 (11:39 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 29 Aug 2025 13:00:30 +0000 (15:00 +0200)
commit9a98f9e84cfbeaa51af42ba2b8bbbde046c709a7
tree2f7a82ce36258d2308d46ba0ac5cfc408447d7e8
parentbc986b1d756482a5ec2d7d9625229d9b9df95ae1
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>
include/linux/fs.h