staging: lustre: fix GFP_ATOMIC macro usage
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 17 Jan 2014 08:46:56 +0000 (09:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 17:05:00 +0000 (09:05 -0800)
commit1ebf5b72dc8bfbe5e7866ee1a2eb935fc7d050e6
tree2f904eeb4d2291fa4a04ffd3194e342ec12b2d29
parenta33b2fc5a9a131eb0a82846f55d7775b28cb2fcb
staging: lustre: fix GFP_ATOMIC macro usage

GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other
flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an
atomic allocation, the code must test __GFP_WAIT flag presence.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_private.h