[PATCH 1/4] netfs: Fix wrong return from netfs_read_sizes() on 32-bit SMP arches
David Howells
dhowells at redhat.com
Thu Apr 23 15:22:04 PDT 2026
Fix netfs_read_sizes() for 32-bit SMP arches to not have a return value.
Fixes: 756f72b6d8db ("netfs: Fix potential for tearing in ->remote_i_size and ->zero_point")
Reported-by: Mark Brown <broonie at kernel.org>
Closes: https://lore.kernel.org/r/aeoIAXzqh0n54mxl@sirena.org.uk
Signed-off-by: David Howells <dhowells at redhat.com>
cc: Christian Brauner <brauner at kernel.org>
cc: Paulo Alcantara <pc at manguebit.org>
cc: netfs at lists.linux.dev
cc: linux-fsdevel at vger.kernel.org
---
include/linux/netfs.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/netfs.h b/include/linux/netfs.h
index d72bc2f11734..ad394c088578 100644
--- a/include/linux/netfs.h
+++ b/include/linux/netfs.h
@@ -669,7 +669,6 @@ static inline void netfs_read_sizes(const struct netfs_inode *ictx,
*remote_i_size = ictx->_remote_i_size;
*zero_point = ictx->_zero_point;
} while (read_seqcount_retry(&inode->i_size_seqcount, seq));
- return zero_point;
#elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION)
unsigned long long zero_point;
More information about the linux-afs
mailing list