mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
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 <[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]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user