projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bda8d8
)
drm/msm: Fix build break with recent mm tree
author
Rob Clark
<robdclark@chromium.org>
Thu, 29 Sep 2022 16:14:04 +0000
(09:14 -0700)
committer
Dave Airlie
<airlied@redhat.com>
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 <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
drivers/gpu/drm/msm/msm_gem_shrinker.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/msm_gem_shrinker.c
b/drivers/gpu/drm/msm/msm_gem_shrinker.c
index
58e0513
..
1de14e6
100644
(file)
--- a/
drivers/gpu/drm/msm/msm_gem_shrinker.c
+++ b/
drivers/gpu/drm/msm/msm_gem_shrinker.c
@@
-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);
}