Whamcloud - gitweb
LU-1513 libcfs: call cfs_alloc with proper masks
authorFan Yong <yong.fan@whamcloud.com>
Sat, 16 Jun 2012 07:16:55 +0000 (15:16 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 16 Jun 2012 21:38:23 +0000 (17:38 -0400)
Do not use kernel GFP masks directly when call cfs_alloc,
instead, Lustre special flags can be used to control the
allocator's behavior.

cfs_alloc will convert these Lustre special flags to some
kernle GFP masks, then call kmalloc with these GFP masks.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I3189e143ff0cf65a08a1bdf2b8476ab151dc308e
Reviewed-on: http://review.whamcloud.com/3118
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>

No differences found