summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-19 19:50:45 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-21 09:29:53 -0500
commit9216106a847a53e6d0fe6d11dfd9175f2ca7fccf (patch)
tree156d5c80974cf81f81856bd0e9b01a55613e1170 /fs/nfs/nfs4state.c
parent2d473d378eb571ad77f9563653639aa35e22d39c (diff)
downloadlinux-3.10-9216106a847a53e6d0fe6d11dfd9175f2ca7fccf.tar.gz
linux-3.10-9216106a847a53e6d0fe6d11dfd9175f2ca7fccf.tar.bz2
linux-3.10-9216106a847a53e6d0fe6d11dfd9175f2ca7fccf.zip
NFSv4.1: clean up nfs4_recall_slot to use nfs4_alloc_slots
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r--fs/nfs/nfs4state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index f3d1bc48c9c..96fcbb97fd6 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -2033,8 +2033,7 @@ static int nfs4_recall_slot(struct nfs_client *clp)
return 0;
nfs4_begin_drain_session(clp);
fc_tbl = &clp->cl_session->fc_slot_table;
- new = kmalloc(fc_tbl->target_max_slots * sizeof(struct nfs4_slot),
- GFP_NOFS);
+ new = nfs4_alloc_slots(fc_tbl->target_max_slots, GFP_NOFS);
if (!new)
return -ENOMEM;