diff options
author | Nikita Ermakov <sh1r4s3@mail.si-head.nl> | 2021-04-30 07:55:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-30 20:20:37 +0200 |
commit | f6899bc03cbadc6e308d98252c4a832b5fd45b87 (patch) | |
tree | 047f88de9d3090eda8dd6ef962c4c8cf95c09aae /mm/zswap.c | |
parent | mm/filemap: update stale comment (diff) | |
download | linux-f6899bc03cbadc6e308d98252c4a832b5fd45b87.tar.xz linux-f6899bc03cbadc6e308d98252c4a832b5fd45b87.zip |
mm/msync: exit early when the flags is an MS_ASYNC and start < vm_start
If an unmapped region was found and the flag is MS_ASYNC (without
MS_INVALIDATE) there is nothing to do and the result would be always
-ENOMEM, so return immediately.
Link: https://lkml.kernel.org/r/20201025092901.56399-1-sh1r4s3@mail.si-head.nl
Signed-off-by: Nikita Ermakov <sh1r4s3@mail.si-head.nl>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions