aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/xarray.c
diff options
context:
space:
mode:
authorLorenzo Stoakes <[email protected]>2024-07-29 11:50:37 +0000
committerAndrew Morton <[email protected]>2024-09-02 03:25:54 +0000
commitd61f0d59683d9c899211c300254d4140c482a6c0 (patch)
tree64d611650167d0210513bfa72fdfc4deef86ae4e /tools/testing/radix-tree/xarray.c
parentmm: move vma_modify() and helpers to internal header (diff)
downloadkernel-d61f0d59683d9c899211c300254d4140c482a6c0.tar.gz
kernel-d61f0d59683d9c899211c300254d4140c482a6c0.zip
mm: move vma_shrink(), vma_expand() to internal header
The vma_shrink() and vma_expand() functions are internal VMA manipulation functions which we ought to abstract for use outside of memory management code. To achieve this, we replace shift_arg_pages() in fs/exec.c with an invocation of a new relocate_vma_down() function implemented in mm/mmap.c, which enables us to also move move_page_tables() and vma_iter_prev_range() to internal.h. The purpose of doing this is to isolate key VMA manipulation functions in order that we can both abstract them and later render them easily testable. Link: https://lkml.kernel.org/r/3cfcd9ec433e032a85f636fdc0d7d98fafbd19c5.1722251717.git.lorenzo.stoakes@oracle.com Signed-off-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Brendan Higgins <[email protected]> Cc: Christian Brauner <[email protected]> Cc: David Gow <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Jan Kara <[email protected]> Cc: Kees Cook <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Rae Moar <[email protected]> Cc: SeongJae Park <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Pengfei Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions