mm: make do_madvise() available internally
authorJens Axboe <axboe@kernel.dk>
Thu, 26 Dec 2019 05:14:54 +0000 (22:14 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Dec 2019 16:05:00 +0000 (09:05 -0700)
commit43e633eb373f919485cc3d22ec9b117a4f93309e
tree6f2fdb179b0102f57faf1c064a4ae1242b2543e3
parent9df5306528ed55f107185a9c408e2c4b67d60958
mm: make do_madvise() available internally

This is in preparation for enabling this functionality through io_uring.
Add a helper that is just exporting what sys_madvise() does, and have the
system call use it.

No functional changes in this patch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/mm.h
mm/madvise.c