]> 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)
commitabdc74c6ea5b22eb172a6598dd7e33bcc6e6b8e1
tree5804bec85500f37751b79c92ad614234f9d57585
parente4ed5f34aae388ec8d48c4743175db908e73c5ea
include/linux/gfp.h: fix ___GFP_NOLOCKDEP value

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