NFSv4.1: clean up nfs4_recall_slot to use nfs4_alloc_slots
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user