• Kamezawa Hiroyuki's avatar
    [PATCH] no buddy bitmap patch revist: intro and includes · 6951e82f
    Kamezawa Hiroyuki authored
    Followings are patches for removing bitmaps from the buddy allocator.  This
    is benefical to memory-hot-plug stuffs, because this removes a data
    structure which must meet to a host's physical memory layout.
    
    This is one step to manage physical memory in nonlinear / discontiguous way
    and will reduce some amounts of codes to implement memory-hot-plug.
    
    This patch removes bitmaps from zone->free_area[] in include/linux/mmzone.h,
    and adds some comments on page->private field in include/linux/mm.h.
    
    non-atomic ops for changing PG_private bit is added in include/page-flags.h.
    zone->lock is always acquired when PG_private of "a free page" is changed.
    Signed-off-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    6951e82f
mm.h 28.9 KB