#define tree_to_pageframe(tree_struct) \
container_of((tree_struct), struct pageframe, tree)
+static inline void clear_pageframe(struct pageframe *pf)
+{
+ memset(pf, 0, sizeof(*pf));
+ INIT_LIST_HEAD(&pf->ml);
+}
+
static inline int page_present(struct pageframe *p)
{
return !!(BITRANGE(63, 63) & p->pf);