/* * We overload the LSB of the page pointer to indicate whether it's * a valid sg entry, or whether it points to the start of a new scatterlist. * Those low bits are there for everyone! (thanks mason :-) */ #define sg_chain_ptr(sg) \ ((struct scatterlist *) ((sg)->page_link & ~0x03))