Skip to content

Commit e9dae2f

Browse files
mjguzikbrauner
authored andcommitted
xfs: remove now spurious i_state initialization in xfs_inode_alloc
inode_init_always started setting the field to 0. Signed-off-by: Mateusz Guzik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 5a9b911 commit e9dae2f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/xfs/xfs_icache.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ xfs_inode_alloc(
8686
return NULL;
8787
}
8888

89-
/* VFS doesn't initialise i_mode or i_state! */
89+
/* VFS doesn't initialise i_mode! */
9090
VFS_I(ip)->i_mode = 0;
91-
VFS_I(ip)->i_state = 0;
9291
mapping_set_large_folios(VFS_I(ip)->i_mapping);
9392

9493
XFS_STATS_INC(mp, vn_active);

0 commit comments

Comments
 (0)