[PATCHv2 0/2] remap_file_pages() decommission

From: Kirill A. Shutemov
Date: Thu May 08 2014 - 08:41:58 EST


Hi Andrew and Linus,

These two patches demonstrate how we can get rid nonlinear mappings.

The first patch documents remap_file_pages(2) deprecation and add printk
into syscall code. The patch could be propagated through stable kernel if
the approach with remap_file_pages() emulation is okay.

The second patch replaces remap_file_pages(2) with and emulation. I didn't
find any real code (apart LTP) to test it on. So I wrote simple test case.
See commit message for numbers.

I will prepare separate patchset to cleanup all nonlinear mappings
leftovers if the approach with emulation is desirable.

Comments?

Kirill A. Shutemov (2):
mm: mark remap_file_pages() syscall as deprecated
mm: replace remap_file_pages() syscall with emulation

Documentation/vm/remap_file_pages.txt | 27 ++++
include/linux/fs.h | 8 +-
mm/Makefile | 2 +-
mm/fremap.c | 282 ----------------------------------
mm/mmap.c | 66 ++++++++
mm/nommu.c | 8 -
6 files changed, 100 insertions(+), 293 deletions(-)
create mode 100644 Documentation/vm/remap_file_pages.txt
delete mode 100644 mm/fremap.c

--
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/