提交 5f63b720 编写于 作者: M Michal Nazarewicz 提交者: Marek Szyprowski

mm: page_alloc: remove trailing whitespace

Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: NMel Gorman <mel@csn.ul.ie>
上级 76e10d15
...@@ -513,10 +513,10 @@ static inline int page_is_buddy(struct page *page, struct page *buddy, ...@@ -513,10 +513,10 @@ static inline int page_is_buddy(struct page *page, struct page *buddy,
* free pages of length of (1 << order) and marked with _mapcount -2. Page's * free pages of length of (1 << order) and marked with _mapcount -2. Page's
* order is recorded in page_private(page) field. * order is recorded in page_private(page) field.
* So when we are allocating or freeing one, we can derive the state of the * So when we are allocating or freeing one, we can derive the state of the
* other. That is, if we allocate a small block, and both were * other. That is, if we allocate a small block, and both were
* free, the remainder of the region must be split into blocks. * free, the remainder of the region must be split into blocks.
* If a block is freed, and its buddy is also free, then this * If a block is freed, and its buddy is also free, then this
* triggers coalescing into a block of larger size. * triggers coalescing into a block of larger size.
* *
* -- wli * -- wli
*/ */
...@@ -1061,17 +1061,17 @@ static struct page *__rmqueue(struct zone *zone, unsigned int order, ...@@ -1061,17 +1061,17 @@ static struct page *__rmqueue(struct zone *zone, unsigned int order,
return page; return page;
} }
/* /*
* Obtain a specified number of elements from the buddy allocator, all under * Obtain a specified number of elements from the buddy allocator, all under
* a single hold of the lock, for efficiency. Add them to the supplied list. * a single hold of the lock, for efficiency. Add them to the supplied list.
* Returns the number of new pages which were placed at *list. * Returns the number of new pages which were placed at *list.
*/ */
static int rmqueue_bulk(struct zone *zone, unsigned int order, static int rmqueue_bulk(struct zone *zone, unsigned int order,
unsigned long count, struct list_head *list, unsigned long count, struct list_head *list,
int migratetype, int cold) int migratetype, int cold)
{ {
int i; int i;
spin_lock(&zone->lock); spin_lock(&zone->lock);
for (i = 0; i < count; ++i) { for (i = 0; i < count; ++i) {
struct page *page = __rmqueue(zone, order, migratetype); struct page *page = __rmqueue(zone, order, migratetype);
...@@ -4301,7 +4301,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, ...@@ -4301,7 +4301,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
init_waitqueue_head(&pgdat->kswapd_wait); init_waitqueue_head(&pgdat->kswapd_wait);
pgdat->kswapd_max_order = 0; pgdat->kswapd_max_order = 0;
pgdat_page_cgroup_init(pgdat); pgdat_page_cgroup_init(pgdat);
for (j = 0; j < MAX_NR_ZONES; j++) { for (j = 0; j < MAX_NR_ZONES; j++) {
struct zone *zone = pgdat->node_zones + j; struct zone *zone = pgdat->node_zones + j;
unsigned long size, realsize, memmap_pages; unsigned long size, realsize, memmap_pages;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册