Skip to content

Commit dbd5479

Browse files
committed
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/[email protected] Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 34b10fc commit dbd5479

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/fs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@ struct inode {
681681
#endif
682682

683683
/* Misc */
684-
unsigned long i_state;
684+
u32 i_state;
685+
/* 32-bit hole */
685686
struct rw_semaphore i_rwsem;
686687

687688
unsigned long dirtied_when; /* jiffies of first dirtying */

0 commit comments

Comments
 (0)