summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorNikita Ermakov <sh1r4s3@mail.si-head.nl>2021-04-29 22:55:41 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 11:20:37 -0700
commitf6899bc03cbadc6e308d98252c4a832b5fd45b87 (patch)
tree047f88de9d3090eda8dd6ef962c4c8cf95c09aae /ipc
parent4b17f030fdc821ca58218489e3b7fd8381707849 (diff)
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 'ipc')
0 files changed, 0 insertions, 0 deletions