diff options
author | Liam R. Howlett <Liam.Howlett@Oracle.com> | 2023-01-20 19:26:46 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-10 03:51:38 +0300 |
commit | cf51e86dfbe39b7cae3a9de650d035af22dd5fb4 (patch) | |
tree | 9d21cd52be3e64b5cada32f2001368af48c9039a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 7c9813e886bb52495ff5b97d4b0f1320d36d869b (diff) | |
download | linux-cf51e86dfbe39b7cae3a9de650d035af22dd5fb4.tar.xz |
mm/mmap: don't use __vma_adjust() in shift_arg_pages()
Introduce shrink_vma() which uses the vma_prepare() and vma_complete()
functions to reduce the vma coverage.
Convert shift_arg_pages() to use expand_vma() and the new shrink_vma()
function. Remove support from __vma_adjust() to reduce a vma size since
shift_arg_pages() is the only user that shrinks a VMA in this way.
Link: https://lkml.kernel.org/r/20230120162650.984577-46-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions