author: zhangkui <zhangkui@oppo.com> 2021-09-02 15:01:11 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:18 -0700
commit: d5fffc5aff269717a035baa087630adca612a6c4
parent: 33090af97350cee9ea0e347301cef704bd5b0d8e
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 5c065bc8b5f6..4a15a83031f6 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1048,6 +1048,7 @@ process_madvise_behavior_valid(int behavior)
switch (behavior) {
case MADV_COLD:
case MADV_PAGEOUT:
+ case MADV_WILLNEED:
return true;
default:
return false;