On Tue, 21 Jul 2015, Vlastimil Babka wrote:

> The pair of get/set_freepage_migratetype() functions are used to cache
> pageblock migratetype for a page put on a pcplist, so that it does not have
> to be retrieved again when the page is put on a free list (e.g. when pcplists
> become full). Historically it was also assumed that the value is accurate for
> pages on freelists (as the functions' names unfortunately suggest), but that
> cannot be guaranteed without affecting various allocator fast paths. It is in
> fact not needed and all such uses have been removed.
> 
> The last remaining (but pointless) usage related to pages of freelists is in
> move_freepages(), which this patch removes.
> 
> To prevent further confusion, rename the functions to
> get/set_pcppage_migratetype() and expand their description. Since all the
> users are now in mm/page_alloc.c, move the functions there from the shared
> header.
> 
> Signed-off-by: Vlastimil Babka <vba...@suse.cz>
> Cc: Joonsoo Kim <iamjoonsoo....@lge.com>
> Cc: Minchan Kim <minc...@kernel.org>
> Cc: Michal Nazarewicz <min...@mina86.com>
> Cc: Laura Abbott <lau...@codeaurora.org>
> Cc: Naoya Horiguchi <n-horigu...@ah.jp.nec.com>
> Cc: Kirill A. Shutemov <kirill.shute...@linux.intel.com>
> Cc: Mel Gorman <mgor...@suse.de>
> Cc: Johannes Weiner <han...@cmpxchg.org>

Acked-by: David Rientjes <rient...@google.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to