Messages in this thread | | | Date | Mon, 08 Jun 2015 11:42:46 -0400 | From | Rik van Riel <> | Subject | Re: [PATCH] mm/mmap.c: optimization of do_mmap_pgoff function |
| |
On 06/06/2015 05:54 AM, Piotr Kwapulinski wrote: > The simple check for zero length memory mapping may be performed > earlier. It causes 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: Rik van Riel <riel@redhat.com>
-- All rights reversed
| |