aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2011-03-23 14:48:29 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-23 15:13:11 -0400
commit480c2006ebb44ae03165695db7b3e38c04e0d102 (patch)
tree20bb22ea6db986e91017734f6c0390e1211b1765 /include
parente47c085afb3d16cbc6a4bfb10a3b074bb7c58998 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index cb2add401f25..4b851a02f7f3 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -95,7 +95,10 @@ struct nfs_open_context {
95 int error; 95 int error;
96 96
97 struct list_head list; 97 struct list_head list;
98};
98 99
100struct nfs_open_dir_context {
101 struct rpc_cred *cred;
99 __u64 dir_cookie; 102 __u64 dir_cookie;
100}; 103};
101 104