]> git.dujemihanovic.xyz Git - linux.git/commit
fs: add i_state helpers
authorChristian Brauner <brauner@kernel.org>
Fri, 23 Aug 2024 12:47:35 +0000 (14:47 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 30 Aug 2024 06:22:39 +0000 (08:22 +0200)
commitda18ecbf0fb6fb73e6f9273e7aa15610f148ce17
treea46fd39f15d145601ca2185e0c964f32a131aba4
parent88b1afbf0f6b221f6c5bb66cc80cd3b38d696687
fs: add i_state helpers

The i_state member is an unsigned long so that it can be used with the
wait bit infrastructure which expects unsigned long. This wastes 4 bytes
which we're unlikely to ever use. Switch to using the var event wait
mechanism using the address of the bit. Thanks to Linus for the address
idea.

Link: https://lore.kernel.org/r/20240823-work-i_state-v3-1-5cd5fd207a57@kernel.org
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/inode.c
include/linux/fs.h