Commit 7860d720 authored by Rob Clark's avatar Rob Clark Committed by Dave Airlie

drm/msm: Fix build break with recent mm tree

9178e3dcb121 ("mm: discard __GFP_ATOMIC") removed __GFP_ATOMIC,
replacing it with a check for not __GFP_DIRECT_RECLAIM.
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220929161404.2769414-1-robdclark@gmail.com
parent 0bda8d82
...@@ -26,7 +26,7 @@ static bool can_swap(void) ...@@ -26,7 +26,7 @@ static bool can_swap(void)
static bool can_block(struct shrink_control *sc) static bool can_block(struct shrink_control *sc)
{ {
if (sc->gfp_mask & __GFP_ATOMIC) if (!(sc->gfp_mask & __GFP_DIRECT_RECLAIM))
return false; return false;
return current_is_kswapd() || (sc->gfp_mask & __GFP_RECLAIM); return current_is_kswapd() || (sc->gfp_mask & __GFP_RECLAIM);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment