Skip to content

Commit 2d48366

Browse files
JianyuZhantorvalds
authored andcommitted
mm, gfp: escalatedly define GFP_HIGHUSER and GFP_HIGHUSER_MOVABLE
GFP_USER, GFP_HIGHUSER and GFP_HIGHUSER_MOVABLE are escalatedly confined defined, also implied by their names: GFP_USER = GFP_USER GFP_USER + __GFP_HIGHMEM = GFP_HIGHUSER GFP_USER + __GFP_HIGHMEM + __GFP_MOVABLE = GFP_HIGHUSER_MOVABLE So just make GFP_HIGHUSER and GFP_HIGHUSER_MOVABLE escalatedly defined to reflect this fact. It also makes the definition clear and texturally warn on any furture break-up of this escalated relastionship. Signed-off-by: Jianyu Zhan <jianyu.zhan@emc.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 66f2ca7 commit 2d48366

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎include/linux/gfp.h‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,8 @@ struct vm_area_struct;
110110
#define GFP_TEMPORARY (__GFP_WAIT | __GFP_IO | __GFP_FS | \
111111
__GFP_RECLAIMABLE)
112112
#define GFP_USER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL)
113-
#define GFP_HIGHUSER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL | \
114-
__GFP_HIGHMEM)
115-
#define GFP_HIGHUSER_MOVABLE (__GFP_WAIT | __GFP_IO | __GFP_FS | \
116-
__GFP_HARDWALL | __GFP_HIGHMEM | \
117-
__GFP_MOVABLE)
113+
#define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM)
114+
#define GFP_HIGHUSER_MOVABLE (GFP_HIGHUSER | __GFP_MOVABLE)
118115
#define GFP_IOFS (__GFP_IO | __GFP_FS)
119116
#define GFP_TRANSHUGE (GFP_HIGHUSER_MOVABLE | __GFP_COMP | \
120117
__GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN | \

0 commit comments

Comments
 (0)