NFS: Ensure we return the dirent->d_type when it is known
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Nov 2010 19:26:44 +0000 (14:26 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 22 Nov 2010 18:24:48 +0000 (13:24 -0500)
commit0b26a0bf6ff398185546432420bb772bcfdf8d94
tree705b94c8662cf18cf8cd18c6b8c68d751d87acb7
parent3020093f578fb6c9acc6914dfd887a1ebd1db659
NFS: Ensure we return the dirent->d_type when it is known

Store the dirent->d_type in the struct nfs_cache_array_entry so that we
can use it in getdents() calls.

This fixes a regression with the new readdir code.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/internal.h
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h