diff options
author | Piotr Kwapulinski <kwapulinski.piotr@gmail.com> | 2015-06-25 02:58:39 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-25 03:49:45 +0300 |
commit | e37609bb36f706c954e82e580e2e790e9d5caef8 (patch) | |
tree | 59b5af0dc55b58fc8b4c0ce68507b3ee5afb687b /mm/memory-failure.c | |
parent | 93ada579b0eea06f808aef08ead64bb230fb7851 (diff) | |
download | linux-e37609bb36f706c954e82e580e2e790e9d5caef8.tar.xz |
mm/mmap.c: optimization of do_mmap_pgoff function
The simple check for zero length memory mapping may be performed
earlier. So that in case of zero length memory mapping some unnecessary
code is not executed at all. It does not make the code less readable
and saves some CPU cycles.
Signed-off-by: Piotr Kwapulinski <kwapulinski.piotr@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions