]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06fe83b532f8e999bdaf904bbbcf53152158fa9f
tree2f904eeb4d2291fa4a04ffd3194e342ec12b2d29
parenteba80f860027ed14c4fd1efa6bb471479a9ac2e9
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