ANDROID: Fix the drain_all_pages default condition broken by a hook

The condition introduced by a patch adding a vendor hook to skip
drain_all_pages is invalid and changes the default behavior for CMA
allocations. Fix the condition to restore default behavior.

Fixes: a2485b8abd ("ANDROID: vendor_hooks: Add hooks to for alloc_contig_range")
Bug: 232357688
Reported-by: Yong-Taek Lee <ytk.lee@samsung.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I686ad9dff57f604557f79cf4dc12cde55474e533
This commit is contained in:
Suren Baghdasaryan
2022-05-12 16:13:22 -07:00
parent 393be9a064
commit 66f0c91b2f

View File

@@ -8772,7 +8772,7 @@ int alloc_contig_range(unsigned long start, unsigned long end,
trace_android_vh_cma_drain_all_pages_bypass(migratetype,
&skip_drain_all_pages);
if (skip_drain_all_pages)
if (!skip_drain_all_pages)
drain_all_pages(cc.zone);
/*