Searched hist:e37609bb36f706c954e82e580e2e790e9d5caef8 (Results 1 – 1 of 1) sorted by relevance
/linux/mm/ |
H A D | mmap.c | diff e37609bb36f706c954e82e580e2e790e9d5caef8 Thu Jun 25 01:58:39 CEST 2015 Piotr Kwapulinski <kwapulinski.piotr@gmail.com> 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>
|