aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.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/pnfs.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/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 5d09a36b2cd8..cbcb6aea58a3 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1630,3 +1630,15 @@ out_free:
1630 kfree(data); 1630 kfree(data);
1631 goto out; 1631 goto out;
1632} 1632}
1633
1634struct nfs4_threshold *pnfs_mdsthreshold_alloc(void)
1635{
1636 struct nfs4_threshold *thp;
1637
1638 thp = kzalloc(sizeof(*thp), GFP_NOFS);
1639 if (!thp) {
1640 dprintk("%s mdsthreshold allocation failed\n", __func__);
1641 return NULL;
1642 }
1643 return thp;
1644}