aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust2012-09-03 13:56:02 -0500
committerGreg Kroah-Hartman2012-10-02 11:47:38 -0500
commit839e17b7fb531eec48714abf5962b0a1310f71d9 (patch)
tree99a53907cc74ad01d28dc9cc0f8a3f12ac7fa089 /include
parentb4395a14b80188c83d6b126f5617d2f1be852b2d (diff)
downloadkernel-common-839e17b7fb531eec48714abf5962b0a1310f71d9.tar.gz
kernel-common-839e17b7fb531eec48714abf5962b0a1310f71d9.tar.xz
kernel-common-839e17b7fb531eec48714abf5962b0a1310f71d9.zip
NFS: Fix the initialisation of the readdir 'cookieverf' array
commit c3f52af3e03013db5237e339c817beaae5ec9e3a upstream. When the NFS_COOKIEVERF helper macro was converted into a static inline function in commit 99fadcd764 (nfs: convert NFS_*(inode) helpers to static inline), we broke the initialisation of the readdir cookies, since that depended on doing a memset with an argument of 'sizeof(NFS_COOKIEVERF(inode))' which therefore changed from sizeof(be32 cookieverf[2]) to sizeof(be32 *). At this point, NFS_COOKIEVERF seems to be more of an obfuscation than a helper, so the best thing would be to just get rid of it. Also see: https://bugzilla.kernel.org/show_bug.cgi?id=46881 Reported-by: Andi Kleen <andi@firstfloor.org> Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index acdc370086a..af625d80e1d 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -261,11 +261,6 @@ static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode)
261 return NFS_SERVER(inode)->nfs_client->rpc_ops; 261 return NFS_SERVER(inode)->nfs_client->rpc_ops;
262} 262}
263 263
264static inline __be32 *NFS_COOKIEVERF(const struct inode *inode)
265{
266 return NFS_I(inode)->cookieverf;
267}
268
269static inline unsigned NFS_MINATTRTIMEO(const struct inode *inode) 264static inline unsigned NFS_MINATTRTIMEO(const struct inode *inode)
270{ 265{
271 struct nfs_server *nfss = NFS_SERVER(inode); 266 struct nfs_server *nfss = NFS_SERVER(inode);