mm: move use_mm/unuse_mm from aio.c to mm/
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 22 Sep 2009 00:03:51 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:42 +0000 (07:17 -0700)
commit3d2d827f5ca5e32816194119d5c980c7e04474a6
treefe0e84669f5f20e1dff8e3dc6b191b4d5dfc0145
parent425fbf047cc70bb30dff368a6da02c8c2d229318
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>
fs/aio.c
include/linux/mmu_context.h [new file with mode: 0644]
mm/Makefile
mm/mmu_context.c [new file with mode: 0644]