NFS: Fix a couple of regressions in readdir.
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Nov 2010 01:26:22 +0000 (20:26 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Nov 2010 01:44:28 +0000 (20:44 -0500)
commit8cd51a0ccd1beda4482507769887c0be9d70f8c1
tree3fe5c05dcc6e532641d1be4e797ab869c71c36ad
parent23ebbd9acf5756b6eb783df84403e3ab668a6bce
NFS: Fix a couple of regressions in readdir.

Fix up the issue that array->eof_index needs to be able to be set
even if array->size == 0.

Ensure that we catch all important memory allocation error conditions
and/or kmap() failures.

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