diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-09-21 17:03:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 07:17:42 -0700 |
commit | 3d2d827f5ca5e32816194119d5c980c7e04474a6 (patch) | |
tree | fe0e84669f5f20e1dff8e3dc6b191b4d5dfc0145 /include/linux/mmu_context.h | |
parent | 425fbf047cc70bb30dff368a6da02c8c2d229318 (diff) | |
download | lwn-3d2d827f5ca5e32816194119d5c980c7e04474a6.tar.gz lwn-3d2d827f5ca5e32816194119d5c980c7e04474a6.zip |
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>
Diffstat (limited to 'include/linux/mmu_context.h')
-rw-r--r-- | include/linux/mmu_context.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mmu_context.h b/include/linux/mmu_context.h new file mode 100644 index 000000000000..70fffeba7495 --- /dev/null +++ b/include/linux/mmu_context.h @@ -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 |