staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE
authorOleg Drokin <green@linuxhacker.ru>
Mon, 4 May 2015 16:48:09 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 13:03:13 +0000 (15:03 +0200)
commit99d56ff7c1c2ebfc8b54bcbdbce092714faefa3f
treee581ea67d73d27ac4a4ddb06fd17dd5ab38054b3
parent640f7d6938a12f8f3f304d5e5e8680ab3cb5c8a5
staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE

Create libcfs_kvzalloc and libcfs_kvzalloc_cpt that
are designed to replace OBD_ALLOC_LARGE and OBD_CPT_ALLOC_LARGE.

Not a drop-in replacement as they also take gfp flags armument
for more flexibility.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs.h
drivers/staging/lustre/lustre/include/obd_support.h
drivers/staging/lustre/lustre/libcfs/Makefile
drivers/staging/lustre/lustre/libcfs/linux/linux-mem.c [new file with mode: 0644]