[RFC PATCH 5/9] mm/page_alloc: use helper functions to add/remove a page to/from buddy

2018-09-10 Thread Aaron Lu
There are multiple places that add/remove a page into/from buddy, introduce helper functions for them. This also makes it easier to add code when a page is added/removed to/from buddy. No functionality change. Acked-by: Vlastimil Babka Signed-off-by: Aaron Lu --- mm/page_alloc.c | 65

[RFC PATCH 5/9] mm/page_alloc: use helper functions to add/remove a page to/from buddy

2018-09-10 Thread Aaron Lu
There are multiple places that add/remove a page into/from buddy, introduce helper functions for them. This also makes it easier to add code when a page is added/removed to/from buddy. No functionality change. Acked-by: Vlastimil Babka Signed-off-by: Aaron Lu --- mm/page_alloc.c | 65