summaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.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 /include/linux/mmzone.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 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index cfcd7723edb6..327f0fa1e1ce 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -747,7 +747,8 @@ extern struct mutex zonelists_mutex;
747void build_all_zonelists(pg_data_t *pgdat, struct zone *zone); 747void build_all_zonelists(pg_data_t *pgdat, struct zone *zone);
748void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx); 748void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx);
749bool zone_watermark_ok(struct zone *z, unsigned int order, 749bool zone_watermark_ok(struct zone *z, unsigned int order,
750 unsigned long mark, int classzone_idx, int alloc_flags); 750 unsigned long mark, int classzone_idx,
751 unsigned int alloc_flags);
751bool zone_watermark_ok_safe(struct zone *z, unsigned int order, 752bool zone_watermark_ok_safe(struct zone *z, unsigned int order,
752 unsigned long mark, int classzone_idx); 753 unsigned long mark, int classzone_idx);
753enum memmap_context { 754enum memmap_context {