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: Randy Dunlap <rdunlap@infradead.org> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rob Clark <robdclark@chromium.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220929161404.2769414-1-robdclark@gmail.com
This commit is contained in:
parent
0bda8d828f
commit
7860d720a8
|
@ -26,7 +26,7 @@ static bool can_swap(void)
|
|||
|
||||
static bool can_block(struct shrink_control *sc)
|
||||
{
|
||||
if (sc->gfp_mask & __GFP_ATOMIC)
|
||||
if (!(sc->gfp_mask & __GFP_DIRECT_RECLAIM))
|
||||
return false;
|
||||
return current_is_kswapd() || (sc->gfp_mask & __GFP_RECLAIM);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue