OpenCloudOS-Kernel/arch/nios2/mm
Linus Torvalds a050ba1e74 mm/fault: convert remaining simple cases to lock_mm_and_find_vma()
This does the simple pattern conversion of alpha, arc, csky, hexagon,
loongarch, nios2, sh, sparc32, and xtensa to the lock_mm_and_find_vma()
helper.  They all have the regular fault handling pattern without odd
special cases.

The remaining architectures all have something that keeps us from a
straightforward conversion: ia64 and parisc have stacks that can grow
both up as well as down (and ia64 has special address region checks).

And m68k, microblaze, openrisc, sparc64, and um end up having extra
rules about only expanding the stack down a limited amount below the
user space stack pointer.  That is something that x86 used to do too
(long long ago), and it probably could just be skipped, but it still
makes the conversion less than trivial.

Note that this conversion was done manually and with the exception of
alpha without any build testing, because I have a fairly limited cross-
building environment.  The cases are all simple, and I went through the
changes several times, but...

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-06-24 14:12:58 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cacheflush.c mm: move page_mapping_file to pagemap.h 2021-04-30 11:20:37 -07:00
dma-mapping.c dma-direct: make uncached_kernel_address more general 2020-03-16 10:48:09 +01:00
extable.c nios2: migrate exception table users off module.h and onto extable.h 2017-01-26 10:58:14 -05:00
fault.c mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-06-24 14:12:58 -07:00
init.c nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
ioremap.c nios2: add support for folded p4d page tables 2020-06-04 19:06:21 -07:00
mmu_context.c nios2: Process management 2014-12-08 12:55:53 +08:00
pgtable.c nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
tlb.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
uaccess.c nios2: use generic strncpy_from_user() and strnlen_user() 2017-05-08 17:14:14 +08:00