From: Christian Brauner Date: Fri, 23 Aug 2024 12:47:40 +0000 (+0200) Subject: inode: make i_state a u32 X-Git-Tag: v6.12-rc1~215^2~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b111edbe0a9c441605be5cfb73001dc98ec686f;p=thirdparty%2Fkernel%2Flinux.git inode: make i_state a u32 Now that we use the wait var event mechanism make i_state a u32 and free up 4 bytes. This means we currently have two 4 byte holes in struct inode which we can pack. Link: https://lore.kernel.org/r/20240823-work-i_state-v3-6-5cd5fd207a57@kernel.org Reviewed-by: Josef Bacik Reviewed-by: Jan Kara Signed-off-by: Christian Brauner --- diff --git a/include/linux/fs.h b/include/linux/fs.h index a868c9823c10a..a1ef8c65d8282 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -681,7 +681,8 @@ struct inode { #endif /* Misc */ - unsigned long i_state; + u32 i_state; + /* 32-bit hole */ struct rw_semaphore i_rwsem; unsigned long dirtied_when; /* jiffies of first dirtying */