Re: [PATCH 2/2] mm, vmstat: List total free blocks for each order in /proc/pagetypeinfo

2019-10-23 Thread Waiman Long
On 10/23/19 2:02 PM, Michal Hocko wrote: > On Wed 23-10-19 13:34:23, Waiman Long wrote: > [...] >> @@ -1419,6 +1419,17 @@ static void pagetypeinfo_showfree_print(struct >> seq_file *m, >> } >> seq_putc(m, '\n'); >> } >> + >> +/* >> + * List total free blocks

Re: [PATCH 2/2] mm, vmstat: List total free blocks for each order in /proc/pagetypeinfo

2019-10-23 Thread Michal Hocko
On Wed 23-10-19 13:34:23, Waiman Long wrote: [...] > @@ -1419,6 +1419,17 @@ static void pagetypeinfo_showfree_print(struct > seq_file *m, > } > seq_putc(m, '\n'); > } > + > + /* > + * List total free blocks per order > + */ > + seq_printf(m,

[PATCH 2/2] mm, vmstat: List total free blocks for each order in /proc/pagetypeinfo

2019-10-23 Thread Waiman Long
Now that the free block count for each migration types in /proc/pagetypeinfo may not show the exact count if it excceeds 100,000. Users may not know how much more the counts will be. As the free_area structure has already tracked the total free block count in nr_free, we may as well print it out