Whamcloud - gitweb
LU-1402 libcfs: CFS_ALLOC_HIGH is __GFP_HIGHMEM
authorIsaac Huang <Isaac_Huang@xyratex.com>
Mon, 14 May 2012 20:23:04 +0000 (14:23 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 9 Jun 2012 07:31:40 +0000 (03:31 -0400)
commit220c6d92200792c318f5248e8e44dbcfc712c788
tree5b64a0486ab60c59b872ccf52b58c213dd59402f
parent0d66070d171ec75cc75f84f9217f11917d920739
LU-1402 libcfs: CFS_ALLOC_HIGH is __GFP_HIGHMEM

According to the comment above CFS_ALLOC_HIGH, the flag
allows allocator to return memory in the highmen zone, but
cfs_alloc_flags_to_gfp() incorrectly converts it to
__GFP_HIGH, which enables the use of emergency pools.

__GFP_HIGHMEM should be used instead. Also it makes sense to rename
CFS_ALLOC_HIGH to CFS_ALLOC_HIGHMEM to avoid further confusion.

Signed-off-by: Isaac Huang <Isaac_Huang@xyratex.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I088f36faec1fe22902065d680730731f8deab5d2
Reviewed-on: http://review.whamcloud.com/2732
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/linux/linux-mem.c
lustre/ptlrpc/sec_bulk.c