diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2022-06-05 17:25:39 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-06-17 04:48:30 +0200 |
commit | 21bfe8db0a4223c16d4f863ef4250dce5ffd08bb (patch) | |
tree | 1861d309a2f200eab2cb21351d0aa8ad346c3299 /mm/memremap.c | |
parent | mm/slab: delete cache_alloc_debugcheck_before() (diff) | |
download | linux-21bfe8db0a4223c16d4f863ef4250dce5ffd08bb.tar.xz linux-21bfe8db0a4223c16d4f863ef4250dce5ffd08bb.zip |
mm/mempool: use might_alloc()
mempool are generally used for GFP_NOIO, so this wont benefit all that
much because might_alloc currently only checks GFP_NOFS. But it does
validate against mmu notifier pte zapping, some might catch some drivers
doing really silly things, plus it's a bit more meaningful in what we're
checking for here.
Link: https://lkml.kernel.org/r/20220605152539.3196045-3-daniel.vetter@ffwll.ch
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memremap.c')
0 files changed, 0 insertions, 0 deletions