]> Git Repo - linux.git/commitdiff
drm/msm: Fix build break with recent mm tree
authorRob Clark <[email protected]>
Thu, 29 Sep 2022 16:14:04 +0000 (09:14 -0700)
committerDave Airlie <[email protected]>
Fri, 30 Sep 2022 00:13:49 +0000 (10:13 +1000)
9178e3dcb121 ("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]
drivers/gpu/drm/msm/msm_gem_shrinker.c

index 58e0513be5f425b51c8967e5019fc019573766d4..1de14e67f96b02012be0c205faf6fbb65ca0f8f1 100644 (file)
@@ -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);
 }
This page took 0.055958 seconds and 4 git commands to generate.