Skip to content

Commit 7860d72

Browse files
robclarkairlied
authored andcommitted
drm/msm: Fix build break with recent mm tree
9178e3d ("mm: discard __GFP_ATOMIC") removed __GFP_ATOMIC, replacing it with a check for not __GFP_DIRECT_RECLAIM. Reported-by: Randy Dunlap <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Rob Clark <[email protected]> Acked-by: Randy Dunlap <[email protected]> # build-tested Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0bda8d8 commit 7860d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/msm_gem_shrinker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static bool can_swap(void)
2626

2727
static bool can_block(struct shrink_control *sc)
2828
{
29-
if (sc->gfp_mask & __GFP_ATOMIC)
29+
if (!(sc->gfp_mask & __GFP_DIRECT_RECLAIM))
3030
return false;
3131
return current_is_kswapd() || (sc->gfp_mask & __GFP_RECLAIM);
3232
}

0 commit comments

Comments
 (0)