]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67479ae2e43cacf5e032f21d85fbe5259ce1e112
treefe0e84669f5f20e1dff8e3dc6b191b4d5dfc0145
parent84d28c7fd07ac7d07a864b9a6fd8c9b654297f7a
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]