/* snapshot_additional_pages - estimate the number of additional pages be needed for setting up the suspend image data structures for given zone (usually the returned value is greater than the exact number)  */
unsigned int snapshot_additional_pages(struct zone *zone)
/* snapshot_additional_pages - estimate the number of additional pages be needed for setting up the suspend image data structures for given zone (usually the returned value is greater than the exact number)  */
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);
	return 2 * res;
}