File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,6 @@ void workingset_update_node(struct xa_node *node);
328
328
/* linux/mm/page_alloc.c */
329
329
extern unsigned long totalreserve_pages ;
330
330
extern unsigned long nr_free_buffer_pages (void );
331
- extern unsigned long nr_free_pagecache_pages (void );
332
331
333
332
/* Definition of global_zone_page_state not available yet */
334
333
#define nr_free_pages () global_zone_page_state(NR_FREE_PAGES)
Original file line number Diff line number Diff line change @@ -5186,19 +5186,6 @@ unsigned long nr_free_buffer_pages(void)
5186
5186
}
5187
5187
EXPORT_SYMBOL_GPL (nr_free_buffer_pages );
5188
5188
5189
- /**
5190
- * nr_free_pagecache_pages - count number of pages beyond high watermark
5191
- *
5192
- * nr_free_pagecache_pages() counts the number of pages which are beyond the
5193
- * high watermark within all zones.
5194
- *
5195
- * Return: number of pages beyond high watermark within all zones.
5196
- */
5197
- unsigned long nr_free_pagecache_pages (void )
5198
- {
5199
- return nr_free_zone_pages (gfp_zone (GFP_HIGHUSER_MOVABLE ));
5200
- }
5201
-
5202
5189
static inline void show_node (struct zone * zone )
5203
5190
{
5204
5191
if (IS_ENABLED (CONFIG_NUMA ))
@@ -5920,7 +5907,8 @@ void __ref build_all_zonelists(pg_data_t *pgdat)
5920
5907
__build_all_zonelists (pgdat );
5921
5908
/* cpuset refresh routine should be here */
5922
5909
}
5923
- vm_total_pages = nr_free_pagecache_pages ();
5910
+ /* Get the number of free pages beyond high watermark in all zones. */
5911
+ vm_total_pages = nr_free_zone_pages (gfp_zone (GFP_HIGHUSER_MOVABLE ));
5924
5912
/*
5925
5913
* Disable grouping by mobility if the number of pages in the
5926
5914
* system is too low to allow the mechanism to work. It would be
You can’t perform that action at this time.
0 commit comments