NFS: Create nfs_open_dir_context
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 23 Mar 2011 18:48:29 +0000 (14:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Mar 2011 19:13:11 +0000 (15:13 -0400)
commit480c2006ebb44ae03165695db7b3e38c04e0d102
tree20bb22ea6db986e91017734f6c0390e1211b1765
parente47c085afb3d16cbc6a4bfb10a3b074bb7c58998
NFS: Create nfs_open_dir_context

nfs_opendir() created a context that held much more information than we
need for a readdir.  This patch introduces a slimmed-down
nfs_open_dir_context that contains only the cookie and the cred used for
RPC operations.  The new context will eventually be used to help detect
readdir loops.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h