diff options
| author | Luis Chamberlain <[email protected]> | 2023-03-09 23:05:42 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-03-28 23:20:15 +0000 |
| commit | cf7992bf6105b93d1b275001e043d8c8643015e3 (patch) | |
| tree | 99a26dcfd7412e5b3b91cd107fce6a22230976db /mm/vmalloc.c | |
| parent | shmem: set shmem_writepage() variables early (diff) | |
| download | kernel-cf7992bf6105b93d1b275001e043d8c8643015e3.tar.gz kernel-cf7992bf6105b93d1b275001e043d8c8643015e3.zip | |
shmem: move reclaim check early on writepages()
i915_gem requires huge folios to be split when swapping. However we have
check for usage of writepages() to ensure it used only for swap purposes
later. Avoid the splits if we're not being called for reclaim, even if
they should in theory not happen.
This makes the conditions easier to follow on shem_writepage().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Luis Chamberlain <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Yosry Ahmed <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Tested-by: Xin Hao <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Cc: Adam Manzanares <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
