]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include/linux/gfp.h: fix ___GFP_NOLOCKDEP value
authorMichal Hocko <mhocko@suse.com>
Fri, 2 Jun 2017 21:46:13 +0000 (14:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jun 2017 22:07:37 +0000 (15:07 -0700)
commit1bde33e051233f0ed93a8bc67137016ab38c3d2d
tree5804bec85500f37751b79c92ad614234f9d57585
parenta7306c3436e9c8e584a4b9fad5f3dc91be2a6076
include/linux/gfp.h: fix ___GFP_NOLOCKDEP value

Igor Stoppa has noticed that __GFP_NOLOCKDEP can use a lower bit.  At
the time commit 7e7844226f10 ("lockdep: allow to disable reclaim lockup
detection") was written we still had __GFP_OTHER_NODE but I have removed
it in commit 41b6167e8f74 ("mm: get rid of __GFP_OTHER_NODE") and forgot
to lower the bit value.

The current value is outside of __GFP_BITS_SHIFT so it cannot be used
actually.

Fixes: 7e7844226f10 ("lockdep: allow to disable reclaim lockup detection")
Signed-off-by: Michal Hocko <mhocko@suse.com>
Reported-by: Igor Stoppa <igor.stoppa@nokia.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h