[RAMEN9610-12171] mm: hpa: change allocate logic from buddy
authorhyesoo.yu <hyesoo.yu@samsung.com>
Wed, 11 Oct 2017 06:56:23 +0000 (15:56 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:16 +0000 (20:23 +0300)
commit470dc783f26dfe20d72aa118d1b67d9f7d640fd4
tree1ae6f4aaf869f5939e66a3da8acac6907077286c
parent70b435d6e5d69609f25d1445b9204c3f9e972b87
[RAMEN9610-12171] mm: hpa: change allocate logic from buddy

The search order is from smallest order with the same
migrate type for reducing the memory fragment and allocate
only 64KB from buddylist and then expand the buddy pages
if the allocated page's order is bigger than requested
order to avoid allocation failure.

Change-Id: If1b224a7034830615dd59f1c92e603bab1158590
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
mm/hpa.c