diff options
author | Nikita Ermakov <[email protected]> | 2021-04-29 22:55:41 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-04-30 11:20:37 -0700 |
commit | f6899bc03cbadc6e308d98252c4a832b5fd45b87 (patch) | |
tree | 047f88de9d3090eda8dd6ef962c4c8cf95c09aae /lib/mpi/mpiutil.c | |
parent | 4b17f030fdc821ca58218489e3b7fd8381707849 (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/[email protected]
Signed-off-by: Nikita Ermakov <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions