aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShakeel Butt <shakeelb@google.com>2018-06-07 20:08:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-07 20:34:36 -0400
commite67d4ca79aaf9d13a00d229b1b1c96b86828e8ba (patch)
tree3cb22146f9720b9552282945c1d977691f0c466b
parent285b8dcaacfc36b0468aaa03e3c628006ae31381 (diff)
mm: save two stranded bits in gfp_mask
___GFP_COLD and ___GFP_OTHER_NODE were removed but their bits were stranded. Fill the gaps by moving the existing gfp masks around. Link: http://lkml.kernel.org/r/20180516211439.177440-1-shakeelb@google.com Signed-off-by: Shakeel Butt <shakeelb@google.com> Suggested-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Greg Thelen <gthelen@google.com> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/gfp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index fc5ab85278d5..7f860ea29ec6 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -24,6 +24,7 @@ struct vm_area_struct;
24#define ___GFP_HIGH 0x20u 24#define ___GFP_HIGH 0x20u
25#define ___GFP_IO 0x40u 25#define ___GFP_IO 0x40u
26#define ___GFP_FS 0x80u 26#define ___GFP_FS 0x80u
27#define ___GFP_WRITE 0x100u
27#define ___GFP_NOWARN 0x200u 28#define ___GFP_NOWARN 0x200u
28#define ___GFP_RETRY_MAYFAIL 0x400u 29#define ___GFP_RETRY_MAYFAIL 0x400u
29#define ___GFP_NOFAIL 0x800u 30#define ___GFP_NOFAIL 0x800u
@@ -36,11 +37,10 @@ struct vm_area_struct;
36#define ___GFP_THISNODE 0x40000u 37#define ___GFP_THISNODE 0x40000u
37#define ___GFP_ATOMIC 0x80000u 38#define ___GFP_ATOMIC 0x80000u
38#define ___GFP_ACCOUNT 0x100000u 39#define ___GFP_ACCOUNT 0x100000u
39#define ___GFP_DIRECT_RECLAIM 0x400000u 40#define ___GFP_DIRECT_RECLAIM 0x200000u
40#define ___GFP_WRITE 0x800000u 41#define ___GFP_KSWAPD_RECLAIM 0x400000u
41#define ___GFP_KSWAPD_RECLAIM 0x1000000u
42#ifdef CONFIG_LOCKDEP 42#ifdef CONFIG_LOCKDEP
43#define ___GFP_NOLOCKDEP 0x2000000u 43#define ___GFP_NOLOCKDEP 0x800000u
44#else 44#else
45#define ___GFP_NOLOCKDEP 0 45#define ___GFP_NOLOCKDEP 0
46#endif 46#endif
@@ -205,7 +205,7 @@ struct vm_area_struct;
205#define __GFP_NOLOCKDEP ((__force gfp_t)___GFP_NOLOCKDEP) 205#define __GFP_NOLOCKDEP ((__force gfp_t)___GFP_NOLOCKDEP)
206 206
207/* Room for N __GFP_FOO bits */ 207/* Room for N __GFP_FOO bits */
208#define __GFP_BITS_SHIFT (25 + IS_ENABLED(CONFIG_LOCKDEP)) 208#define __GFP_BITS_SHIFT (23 + IS_ENABLED(CONFIG_LOCKDEP))
209#define __GFP_BITS_MASK ((__force gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) 209#define __GFP_BITS_MASK ((__force gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
210 210
211/* 211/*