fs/shmfs: Fix stat() system call for shmfs object

Set i_size for shmfs objects
This commit is contained in:
Ville Juven
2024-02-01 12:31:46 +02:00
committed by Xiang Xiao
parent 07ce2f717a
commit f0846e1d2d
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ struct inode
uint16_t i_flags; /* Flags for inode */
union inode_ops_u u; /* Inode operations */
ino_t i_ino; /* Inode serial number */
#ifdef CONFIG_PSEUDOFS_FILE
#if defined(CONFIG_PSEUDOFS_FILE) || defined(CONFIG_FS_SHMFS)
size_t i_size; /* The size of per inode driver */
#endif
#ifdef CONFIG_PSEUDOFS_ATTRIBUTES