From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/3] fixup! fs: replace FILE.size by f_inode.i_size
Date: Sun, 12 Jan 2025 09:21:13 +0100 [thread overview]
Message-ID: <20250112082113.313620-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250112082113.313620-1-a.fatoum@pengutronix.de>
This was missed the first time, because it was .size instead of ->size.
Signed-off-by: Ahmad Fatoum <a.fatoum@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
next prev parent reply other threads:[~2025-01-12 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-12 8:21 [PATCH 1/3] fixup! usb: add static inline wrapper for of_usb_get_phy_mode() Ahmad Fatoum
2025-01-12 8:21 ` [PATCH 2/3] fixup! ARM: ep93xx: delete unused drivers Ahmad Fatoum
2025-01-12 8:21 ` Ahmad Fatoum [this message]
2025-01-14 6:47 ` [PATCH 1/3] fixup! usb: add static inline wrapper for of_usb_get_phy_mode() Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250112082113.313620-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox