summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lnet/selftest/rpc.c
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2013-06-03 21:58:22 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-03 11:32:51 -0700
commit49c02a75708457b629bba47aed0ba28b2cabf4a1 (patch)
treed23494acfdb392db757adab317c5d8f818f43fe2 /drivers/staging/lustre/lnet/selftest/rpc.c
parentc3dbb7812d21e04995c34c1a1a5e0e8262896d5f (diff)
downloadlinux-49c02a75708457b629bba47aed0ba28b2cabf4a1.tar.bz2
staging/lustre: clean up and remove libcfs/linux/linux-mem.c
Those are simple wrappers for numa allocator. We don't need them. Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/rpc.c')
-rw-r--r--drivers/staging/lustre/lnet/selftest/rpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c
index 91d83f4b746e..bc1f38b80486 100644
--- a/drivers/staging/lustre/lnet/selftest/rpc.c
+++ b/drivers/staging/lustre/lnet/selftest/rpc.c
@@ -146,7 +146,8 @@ srpc_alloc_bulk(int cpt, unsigned bulk_npg, unsigned bulk_len, int sink)
struct page *pg;
int nob;
- pg = cfs_page_cpt_alloc(lnet_cpt_table(), cpt, GFP_IOFS);
+ pg = alloc_pages_node(cfs_cpt_spread_node(lnet_cpt_table(), cpt),
+ GFP_IOFS, 0);
if (pg == NULL) {
CERROR("Can't allocate page %d of %d\n", i, bulk_npg);
srpc_free_bulk(bk);