]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fd6ac86e33bec9feb953053591d9286afbdd12a
treedbc1e5c53c3ad54c4841441c8bff13484d034f06
parent0b9b9d67700c547724db6b44dfa14f8eaa2a9e60
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