summaryrefslogtreecommitdiffstats
path: root/mm/internal.h
diff options
context:
space:
mode:
authorMel Gorman <mgorman@techsingularity.net>2016-05-19 20:13:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-19 22:12:14 -0400
commitc603844bdcb5238980de8d58b393f52d7729d651 (patch)
treec6aefae3a21374dc65f21b89d47965c65fba9f4a /mm/internal.h
parentf75fb889d18d362e336f8d3fba158a8636d0a063 (diff)
mm, page_alloc: convert alloc_flags to unsigned
alloc_flags is a bitmask of flags but it is signed which does not necessarily generate the best code depending on the compiler. Even without an impact, it makes more sense that this be unsigned. Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
-rw-r--r--mm/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 098a89e3b97c..114593aab55c 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -175,7 +175,7 @@ struct compact_control {
175 bool direct_compaction; /* False from kcompactd or /proc/... */ 175 bool direct_compaction; /* False from kcompactd or /proc/... */
176 int order; /* order a direct compactor needs */ 176 int order; /* order a direct compactor needs */
177 const gfp_t gfp_mask; /* gfp mask of a direct compactor */ 177 const gfp_t gfp_mask; /* gfp mask of a direct compactor */
178 const int alloc_flags; /* alloc flags of a direct compactor */ 178 const unsigned int alloc_flags; /* alloc flags of a direct compactor */
179 const int classzone_idx; /* zone index of a direct compactor */ 179 const int classzone_idx; /* zone index of a direct compactor */
180 struct zone *zone; 180 struct zone *zone;
181 int contended; /* Signal need_sched() or lock 181 int contended; /* Signal need_sched() or lock