/* unpack_orig_pfns - for each element of @buf (1 page at a time) set the corresponding bit in the memory bitmap @bm  */
static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm)
/* unpack_orig_pfns - for each element of @buf (1 page at a time) set the corresponding bit in the memory bitmap @bm  */
static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm)
{
	int j;
	for (j = 0; j < PAGE_SIZE / sizeof(long); j++) {
		if (unlikely(buf[j] == BM_END_OF_MAP))
			break;
		if (memory_bm_pfn_present(bm, buf[j]))
			memory_bm_set_bit(bm, buf[j]);
		else
			return -EFAULT;
	}
	return 0;
}