[PATCH 3/3] fixup! fs: replace FILE.size by f_inode.i_size

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Jan 12 00:21:13 PST 2025


This was missed the first time, because it was .size instead of ->size.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 fs/smhfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/smhfs.c b/fs/smhfs.c
index b32f7422ee48..ed98cd247bd8 100644
--- a/fs/smhfs.c
+++ b/fs/smhfs.c
@@ -116,7 +116,7 @@ static int smhfs_stat(struct device __always_unused *dev,
 
 	if (smhfs_open(NULL, &file, filename) == 0) {
 		s->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
-		s->st_size = file.size;
+		s->st_size = file.f_size;
 	}
 	smhfs_close(NULL, &file);
 
-- 
2.39.5




More information about the barebox mailing list