Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97239
b: refs/heads/master
c: f723215
h: refs/heads/master
i:
  97237: 0e7d4af
  97235: 3fa96b9
  97231: b83f93a
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed May 24, 2008
1 parent de47651 commit d6b4224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f899b0adc6fc8f60a9db8b52f36f06fd1abeaf7c
refs/heads/master: f7232154198f928fc25f420d6190468212a7632a
3 changes: 2 additions & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3378,7 +3378,8 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
* is used by this zone for memmap. This affects the watermark
* and per-cpu initialisations
*/
memmap_pages = (size * sizeof(struct page)) >> PAGE_SHIFT;
memmap_pages =
PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT;
if (realsize >= memmap_pages) {
realsize -= memmap_pages;
printk(KERN_DEBUG
Expand Down

0 comments on commit d6b4224

Please sign in to comment.