NFS: Correct the array bound calculation in nfs_readdir_add_to_array
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Nov 2010 20:18:22 +0000 (15:18 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 22 Nov 2010 18:24:47 +0000 (13:24 -0500)
commit3020093f578fb6c9acc6914dfd887a1ebd1db659
tree473af4f139dcb3975b20bcd9d2e04fb1cadc97b3
parentece0b4233b6b915d1f63add2bd9f2733aec6317a
NFS: Correct the array bound calculation in nfs_readdir_add_to_array

It looks as if the array size calculation in MAX_READDIR_ARRAY does not
take the alignment of struct nfs_cache_array_entry into account.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c