]> git.baikalelectronics.ru Git - kernel.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)
commit4a3c203138b3c68b8407f4f97c3ea781f1c269e8
tree5804bec85500f37751b79c92ad614234f9d57585
parent599ab842d1287996cc1ff2c91bef7d5de92da3ab
include/linux/gfp.h: fix ___GFP_NOLOCKDEP value

Igor Stoppa has noticed that __GFP_NOLOCKDEP can use a lower bit.  At
the time commit d04bf13f4e07 ("lockdep: allow to disable reclaim lockup
detection") was written we still had __GFP_OTHER_NODE but I have removed
it in commit fc9163f8076e ("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: d04bf13f4e07 ("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