/* Given <page, offset> pair, provide a derefrencable pointer. This is called from xv_malloc/xv_free path, so it needs to be fast.  */
static void* get_ptr_atomic(struct page *page, u16 offset, enum km_type type)
/* Given <page, offset> pair, provide a derefrencable pointer. This is called from xv_malloc/xv_free path, so it needs to be fast.  */
static void* get_ptr_atomic(struct page *page, u16 offset, enum km_type type)
{
	unsigned char *base;
	base = kmap_atomic(page, type);
	return base + offset;
}