diff options
author | Michal Hocko <mhocko@suse.com> | 2017-06-02 17:46:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-06-02 18:07:37 -0400 |
commit | 1bde33e051233f0ed93a8bc67137016ab38c3d2d (patch) | |
tree | 5804bec85500f37751b79c92ad614234f9d57585 /include/linux/gfp.h | |
parent | a7306c3436e9c8e584a4b9fad5f3dc91be2a6076 (diff) |
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>
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r-- | include/linux/gfp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 2b1a44f5bdb6..a89d37e8b387 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h | |||
@@ -41,7 +41,7 @@ struct vm_area_struct; | |||
41 | #define ___GFP_WRITE 0x800000u | 41 | #define ___GFP_WRITE 0x800000u |
42 | #define ___GFP_KSWAPD_RECLAIM 0x1000000u | 42 | #define ___GFP_KSWAPD_RECLAIM 0x1000000u |
43 | #ifdef CONFIG_LOCKDEP | 43 | #ifdef CONFIG_LOCKDEP |
44 | #define ___GFP_NOLOCKDEP 0x4000000u | 44 | #define ___GFP_NOLOCKDEP 0x2000000u |
45 | #else | 45 | #else |
46 | #define ___GFP_NOLOCKDEP 0 | 46 | #define ___GFP_NOLOCKDEP 0 |
47 | #endif | 47 | #endif |