mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
mm: move use_mm/unuse_mm from aio.c to mm/
Anyone who wants to do copy to/from user from a kernel thread, needs use_mm (like what fs/aio has). Move that into mm/, to make reusing and exporting easier down the line, and make aio use it. Next intended user, besides aio, will be vhost-net. Acked-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
425fbf047c
commit
3d2d827f5c
4 changed files with 66 additions and 47 deletions
9
include/linux/mmu_context.h
Normal file
9
include/linux/mmu_context.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#ifndef _LINUX_MMU_CONTEXT_H
|
||||
#define _LINUX_MMU_CONTEXT_H
|
||||
|
||||
struct mm_struct;
|
||||
|
||||
void use_mm(struct mm_struct *mm);
|
||||
void unuse_mm(struct mm_struct *mm);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue