]> xenbits.xensource.com Git - xen.git/commit
mm: MEMF_node should handle changes in nodeid_t size
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 26 Feb 2015 13:08:34 +0000 (14:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Feb 2015 13:10:24 +0000 (14:10 +0100)
commitbefe0a0da90d7ac063fd8b5891c7d0caeeeefa5f
tree3e8a56578f97ffdb7107e400b369fe3ffd206e72
parent54ce2db8b8953b17c6b22042df83193299a991eb
mm: MEMF_node should handle changes in nodeid_t size

Instead of using a hardcoded constant to extract nodeID from
memflags use a macro whose value is based on nodeid_t size.

Also provide a macro for extracting nodeID from memflags so that
users don't need to remember to decrement the value.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
MASK_EXTR() can't be used in MEMF2NODE() (also renamed to
MEMF_get_node()).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c
xen/include/xen/mm.h