The regular buddy freeing function also increases theThen you need to split the parts you want out into sub-functions and call it from the previous callers, and your new use for it...
number of free pages. Since we are not actually
freeing pages (we are just moving them), we do not
want the original freeing function. But then we could decrease the number of free pages by the same number &
use the buddy freeing function. Will do. Thanks.