]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: cfs_percpt_alloc: use kvmalloc(GFP_KERNEL)
authorNeilBrown <neilb@suse.com>
Tue, 9 Jan 2018 01:19:38 +0000 (12:19 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 14:41:57 +0000 (15:41 +0100)
commit377315fca9731515c7d51b6f22b1283a71d5ae13
tree1776460d53c443d9be81a8780352237169e3a2eb
parent5e4cf32b9ef8d27a29f88ccb92b9e2e3f0eb5385
staging: lustre: cfs_percpt_alloc: use kvmalloc(GFP_KERNEL)

this allocation is called from several places, but all are
during initialization, so GFP_NOFS is not needed.
So use kvmalloc and GFP_KERNEL.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/libcfs_mem.c