From e37609bb36f706c954e82e580e2e790e9d5caef8 Mon Sep 17 00:00:00 2001 From: Piotr Kwapulinski Date: Wed, 24 Jun 2015 16:58:39 -0700 Subject: [PATCH] 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 Acked-by: Michal Hocko Acked-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed