ANDROID: mm: cma: introduce __cma_alloc API
This patch enhances the CMA API with support for failfast mode, utilizing the __GFP_NORETRY flag. This mode is specifically designed for high-order bulk allocation scenarios, enabling the CMA API to avoid prolonged stalls resulting from blocking pages such as those undergoing page writeback or page locking. Instead of stalling, the API will continue searching for readily migratable pages across different pageblocks. The original patch link: Link: https://lore.kernel.org/linux-mm/YAnM5PbNJZlk%2F%2FiX@google.com/T/#m36b144ff81fe0a8f0ecaf6813de4819ecc41f8fe Bug: 308881290 Change-Id: I1c623f17fb49c26005aaffc17330cf820ce6585c Signed-off-by:Richard Chang <richardycc@google.com> (cherry picked from commit 3390547f)
Loading