Skip to content

Commit e67d4ca

Browse files
shakeelbtorvalds
authored andcommitted
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/[email protected] Signed-off-by: Shakeel Butt <[email protected]> Suggested-by: Vlastimil Babka <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Greg Thelen <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 285b8dc commit e67d4ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/linux/gfp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct vm_area_struct;
2424
#define ___GFP_HIGH 0x20u
2525
#define ___GFP_IO 0x40u
2626
#define ___GFP_FS 0x80u
27+
#define ___GFP_WRITE 0x100u
2728
#define ___GFP_NOWARN 0x200u
2829
#define ___GFP_RETRY_MAYFAIL 0x400u
2930
#define ___GFP_NOFAIL 0x800u
@@ -36,11 +37,10 @@ struct vm_area_struct;
3637
#define ___GFP_THISNODE 0x40000u
3738
#define ___GFP_ATOMIC 0x80000u
3839
#define ___GFP_ACCOUNT 0x100000u
39-
#define ___GFP_DIRECT_RECLAIM 0x400000u
40-
#define ___GFP_WRITE 0x800000u
41-
#define ___GFP_KSWAPD_RECLAIM 0x1000000u
40+
#define ___GFP_DIRECT_RECLAIM 0x200000u
41+
#define ___GFP_KSWAPD_RECLAIM 0x400000u
4242
#ifdef CONFIG_LOCKDEP
43-
#define ___GFP_NOLOCKDEP 0x2000000u
43+
#define ___GFP_NOLOCKDEP 0x800000u
4444
#else
4545
#define ___GFP_NOLOCKDEP 0
4646
#endif
@@ -205,7 +205,7 @@ struct vm_area_struct;
205205
#define __GFP_NOLOCKDEP ((__force gfp_t)___GFP_NOLOCKDEP)
206206

207207
/* 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))
209209
#define __GFP_BITS_MASK ((__force gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
210210

211211
/*

0 commit comments

Comments
 (0)