]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: cleanup follow_page_mask()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 22 May 2014 00:43:07 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:07 +0000 (10:43 +1000)
commit2455469b02208a21db00f81ad2b52aae45d71bcb
tree0e4bc207cf78619b12e0518cb0cd3eaa499006a2
parent6f733015a96978b330f37c67613750fed00a8f3a
mm: cleanup follow_page_mask()

Cleanups:
 - move pte-related code to separate function. It's about half of the
   function;
 - get rid of some goto-logic;
 - use 'return NULL' instead of 'return page' where page can only be
   NULL;

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/gup.c