aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-05-23 05:02:35 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-24 16:15:48 -0400
commit82be417aa37c05116e310b0f2171187ea389f89b (patch)
tree901d8fc702d6aef425c4b17cdf62e4fdd8c81833 /fs/nfs/inode.c
parent88034c3d88c2c48b215f2cc5eb22e564aa817f9c (diff)
NFSv4.1 cache mdsthreshold values on OPEN
Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 9ad81ce0c40f..889f7e5e92e1 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -641,6 +641,7 @@ struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f
641 nfs_init_lock_context(&ctx->lock_context); 641 nfs_init_lock_context(&ctx->lock_context);
642 ctx->lock_context.open_context = ctx; 642 ctx->lock_context.open_context = ctx;
643 INIT_LIST_HEAD(&ctx->list); 643 INIT_LIST_HEAD(&ctx->list);
644 ctx->mdsthreshold = NULL;
644 return ctx; 645 return ctx;
645} 646}
646 647
@@ -669,6 +670,7 @@ static void __put_nfs_open_context(struct nfs_open_context *ctx, int is_sync)
669 put_rpccred(ctx->cred); 670 put_rpccred(ctx->cred);
670 dput(ctx->dentry); 671 dput(ctx->dentry);
671 nfs_sb_deactive(sb); 672 nfs_sb_deactive(sb);
673 kfree(ctx->mdsthreshold);
672 kfree(ctx); 674 kfree(ctx);
673} 675}
674 676