diff options
| author | Baoquan He <[email protected]> | 2024-03-09 04:44:54 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-26 03:56:08 +0000 |
| commit | 4b68a773a7ceb3467efec308963140d3e217ec59 (patch) | |
| tree | 134f2a0963c19c9cb01071318462f822e6530880 /lib/test_xarray.c | |
| parent | mm/filemap: don't decrease mmap_miss when folio has workingset flag (diff) | |
| download | kernel-4b68a773a7ceb3467efec308963140d3e217ec59.tar.gz kernel-4b68a773a7ceb3467efec308963140d3e217ec59.zip | |
mm/vmalloc.c: optimize to reduce arguments of alloc_vmap_area()
If called by __get_vm_area_node(), by open coding the field assignments of
'struct vm_struct *vm', and move the vm->flags and vm->caller assignments
into __get_vm_area_node(), the passed in arguments 'flags' and 'caller'
can be removed.
This alleviates overloaded arguments passed in for alloc_vmap_area().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Baoquan He <[email protected]>
Reviewed-by: Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
