Lines 3371-3378
Link Here
|
3371 |
int reserve; |
3371 |
int reserve; |
3372 |
|
3372 |
|
3373 |
/* Get the start pfn, end pfn and the number of blocks to reserve */ |
3373 |
/* Get the start pfn, end pfn and the number of blocks to reserve */ |
|
|
3374 |
/* |
3375 |
* Get the start pfn, end pfn and the number of blocks to reserve |
3376 |
* We have to be careful to be aligned to pageblock_nr_pages to |
3377 |
* make sure that we always check pfn_valid for the first page in |
3378 |
* the block. |
3379 |
*/ |
3380 |
|
3374 |
start_pfn = zone->zone_start_pfn; |
3381 |
start_pfn = zone->zone_start_pfn; |
3375 |
end_pfn = start_pfn + zone->spanned_pages; |
3382 |
end_pfn = start_pfn + zone->spanned_pages; |
|
|
3383 |
start_pfn = roundup(start_pfn, pageblock_nr_pages); |
3376 |
reserve = roundup(min_wmark_pages(zone), pageblock_nr_pages) >> |
3384 |
reserve = roundup(min_wmark_pages(zone), pageblock_nr_pages) >> |
3377 |
pageblock_order; |
3385 |
pageblock_order; |
3378 |
|
3386 |
|