diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2011-03-23 14:48:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-23 15:13:11 -0400 |
commit | 480c2006ebb44ae03165695db7b3e38c04e0d102 (patch) | |
tree | 20bb22ea6db986e91017734f6c0390e1211b1765 /fs/nfs/inode.c | |
parent | e47c085afb3d16cbc6a4bfb10a3b074bb7c58998 (diff) | |
download | linux-480c2006ebb44ae03165695db7b3e38c04e0d102.tar.bz2 |
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 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 2f8e61816d75..477a2e512b39 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -639,7 +639,6 @@ struct nfs_open_context *alloc_nfs_open_context(struct path *path, struct rpc_cr ctx->mode = f_mode; ctx->flags = 0; ctx->error = 0; - ctx->dir_cookie = 0; nfs_init_lock_context(&ctx->lock_context); ctx->lock_context.open_context = ctx; INIT_LIST_HEAD(&ctx->list); |