diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2024-06-11 14:06:25 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-06-13 13:40:44 +0200 |
commit | e9dae2fb991b3211108187f90551d62968ef06a1 (patch) | |
tree | 51594add8f6e4de1b1549038fdd6267431961f91 /fs/xfs/xfs_icache.c | |
parent | 5a9b911b8a24eda19eb0a5ab3b06688299a20711 (diff) |
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 <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20240611120626.513952-4-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_icache.c')
-rw-r--r-- | fs/xfs/xfs_icache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index d31a2c1ac00a..088ac200b026 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -86,9 +86,8 @@ xfs_inode_alloc( return NULL; } - /* VFS doesn't initialise i_mode or i_state! */ + /* VFS doesn't initialise i_mode! */ VFS_I(ip)->i_mode = 0; - VFS_I(ip)->i_state = 0; mapping_set_large_folios(VFS_I(ip)->i_mapping); XFS_STATS_INC(mp, vn_active); |