projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9b911
)
xfs: remove now spurious i_state initialization in xfs_inode_alloc
author
Mateusz Guzik
<mjguzik@gmail.com>
Tue, 11 Jun 2024 12:06:25 +0000
(14:06 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 13 Jun 2024 11:40:44 +0000
(13:40 +0200)
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>
fs/xfs/xfs_icache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/xfs_icache.c
b/fs/xfs/xfs_icache.c
index d31a2c1ac00afb93329ca5767bdf7adfb04a5bdc..088ac200b026e2e12fff5de72abfcb54d1a83a24 100644
(file)
--- 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);