]> git.baikalelectronics.ru Git - kernel.git/commit
mm: cleanup follow_page_mask()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Wed, 4 Jun 2014 23:08:11 +0000 (16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:04 +0000 (16:54 -0700)
commitca485710febefc7c48f43939405316b4d74ec1a2
treeb69462f8a648708c31244d89a7fda3bde225ac7c
parenteb0c92eec07da16ed939a4795f503bbb209e9d78
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/gup.c