[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5575B7F6.6090000@redhat.com>
Date: Mon, 08 Jun 2015 11:42:46 -0400
From: Rik van Riel <riel@...hat.com>
To: Piotr Kwapulinski <kwapulinski.piotr@...il.com>,
akpm@...ux-foundation.org
CC: kirill.shutemov@...ux.intel.com, mhocko@...e.cz,
sasha.levin@...cle.com, dave@...olabs.net, koct9i@...il.com,
pfeiner@...gle.com, dh.herrmann@...il.com, vishnu.ps@...sung.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
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@...il.com>
Acked-by: Rik van Riel <riel@...hat.com>
--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists