Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286630
b: refs/heads/master
c: 160cb5a
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Rafael J. Wysocki committed Jan 19, 2012
1 parent 91a55b1 commit cb408f4
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: 5eb6f9ad96967be4e0da55521a253e11b534bd3f
refs/heads/master: 160cb5a97daef0cb894685d84c9d4700bb7cccb4
3 changes: 2 additions & 1 deletion trunk/kernel/power/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,8 @@ unsigned int snapshot_additional_pages(struct zone *zone)
unsigned int res;

res = DIV_ROUND_UP(zone->spanned_pages, BM_BITS_PER_BLOCK);
res += DIV_ROUND_UP(res * sizeof(struct bm_block), PAGE_SIZE);
res += DIV_ROUND_UP(res * sizeof(struct bm_block),
LINKED_PAGE_DATA_SIZE);
return 2 * res;
}

Expand Down

0 comments on commit cb408f4

Please sign in to comment.