aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 159f81577774..276140654305 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2813,13 +2813,13 @@ void free_pages_exact(void *virt, size_t size)
2813} 2813}
2814EXPORT_SYMBOL(free_pages_exact); 2814EXPORT_SYMBOL(free_pages_exact);
2815 2815
2816static unsigned int nr_free_zone_pages(int offset) 2816static unsigned long nr_free_zone_pages(int offset)
2817{ 2817{
2818 struct zoneref *z; 2818 struct zoneref *z;
2819 struct zone *zone; 2819 struct zone *zone;
2820 2820
2821 /* Just pick one node, since fallback list is circular */ 2821 /* Just pick one node, since fallback list is circular */
2822 unsigned int sum = 0; 2822 unsigned long sum = 0;
2823 2823
2824 struct zonelist *zonelist = node_zonelist(numa_node_id(), GFP_KERNEL); 2824 struct zonelist *zonelist = node_zonelist(numa_node_id(), GFP_KERNEL);
2825 2825
@@ -2836,7 +2836,7 @@ static unsigned int nr_free_zone_pages(int offset)
2836/* 2836/*
2837 * Amount of free RAM allocatable within ZONE_DMA and ZONE_NORMAL 2837 * Amount of free RAM allocatable within ZONE_DMA and ZONE_NORMAL
2838 */ 2838 */
2839unsigned int nr_free_buffer_pages(void) 2839unsigned long nr_free_buffer_pages(void)
2840{ 2840{
2841 return nr_free_zone_pages(gfp_zone(GFP_USER)); 2841 return nr_free_zone_pages(gfp_zone(GFP_USER));
2842} 2842}
@@ -2845,7 +2845,7 @@ EXPORT_SYMBOL_GPL(nr_free_buffer_pages);
2845/* 2845/*
2846 * Amount of free RAM allocatable within all zones 2846 * Amount of free RAM allocatable within all zones
2847 */ 2847 */
2848unsigned int nr_free_pagecache_pages(void) 2848unsigned long nr_free_pagecache_pages(void)
2849{ 2849{
2850 return nr_free_zone_pages(gfp_zone(GFP_HIGHUSER_MOVABLE)); 2850 return nr_free_zone_pages(gfp_zone(GFP_HIGHUSER_MOVABLE));
2851} 2851}