summaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorNikita Ermakov <sh1r4s3@mail.si-head.nl>2021-04-30 07:55:41 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 20:20:37 +0200
commitf6899bc03cbadc6e308d98252c4a832b5fd45b87 (patch)
tree047f88de9d3090eda8dd6ef962c4c8cf95c09aae /mm/zswap.c
parentmm/filemap: update stale comment (diff)
downloadlinux-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