static inline struct page *sg_page(struct scatterlist *sg) { #ifdef CONFIG_DEBUG_SG
BUG_ON(sg->sg_magic != SG_MAGIC); BUG_ON(sg_is_chain(sg));
#endif return (struct page *)((sg)->page_link & ~0x3);
}