mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
mm: correct ALLOC_WMARK_MIN flag check for atomic allocations
ALLOC_WMARK_[MIN|LOW|HIGH] are the indexes into the zones->_watermark
array. Use ALLOC_WMARK_MASK to get a particular water mark alloc flag.
Correct this logic for atomic order-0 allocations watermark check.
Change-Id: I5a74abd579df2ddcca63fdd99a090ca83ccd481c
Fixes: 6b274863bca8 ("mm: ignore boosting for min watermark")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
This commit is contained in:
parent
2f2da11aec
commit
0a475ab309
1 changed files with 1 additions and 1 deletions
|
|
@ -3781,7 +3781,7 @@ retry:
|
|||
* 3) ALLOC_HARDER - Allow (__GFP_ATOMIC && !__GFP_NOMEMALLOC),
|
||||
* of the others.
|
||||
*/
|
||||
if (unlikely(!order && (alloc_flags & ALLOC_WMARK_MIN) &&
|
||||
if (unlikely(!order && !(alloc_flags & ALLOC_WMARK_MASK) &&
|
||||
(alloc_flags & (ALLOC_HARDER | ALLOC_HIGH)))) {
|
||||
mark = zone->_watermark[WMARK_MIN];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue