]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit - mm/madvise.c
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>
Tue, 21 Jan 2020 00:04:02 +0000 (17:04 -0700)
commitdb08ca25253d56f1f76eb4b3fe32a7ac1fbab741
treedbc1e5c53c3ad54c4841441c8bff13484d034f06
parent4840e418c2fc533d55ff6caa5b9313eed1d26cfd
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.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/mm.h
mm/madvise.c