Messages in this thread | | | Date | Wed, 6 Jan 2010 15:21:01 -0800 | Subject | Re: [PATCH 2/7] Export unusable free space index via /proc/pagetypeinfo | From | Tim Pepper <> |
| |
On Wed, Jan 6, 2010 at 8:26 AM, Mel Gorman <mel@csn.ul.ie> wrote: > > diff --git a/mm/vmstat.c b/mm/vmstat.c > index 6051fba..e1ea2d5 100644 > --- a/mm/vmstat.c > +++ b/mm/vmstat.c > @@ -451,6 +451,104 @@ static int frag_show(struct seq_file *m, void *arg) > return 0; > } > > + > +struct config_page_info { > + unsigned long free_pages; > + unsigned long free_blocks_total; > + unsigned long free_blocks_suitable; > +}; > + > +/* > + * Calculate the number of free pages in a zone, how many contiguous > + * pages are free and how many are large enough to satisfy an allocation of > + * the target size. Note that this function makes to attempt to estimate
s/makes to/makes no/ ?
Tim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |