summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorKirill A. Shutemov2013-09-13 00:13:59 +0200
committerLinus Torvalds2013-09-13 00:38:03 +0200
commit66a0c8ee3dce78362d59f00a8efbd752fbeddfb1 (patch)
tree52dda5e13fb36c0c48c1ab922563d8450e4b20dc /mm/huge_memory.c
parentthp: account anon transparent huge pages into NR_ANON_PAGES (diff)
downloadkernel-qcow2-linux-66a0c8ee3dce78362d59f00a8efbd752fbeddfb1.tar.gz
kernel-qcow2-linux-66a0c8ee3dce78362d59f00a8efbd752fbeddfb1.tar.xz
kernel-qcow2-linux-66a0c8ee3dce78362d59f00a8efbd752fbeddfb1.zip
mm: cleanup add_to_page_cache_locked()
Make add_to_page_cache_locked() cleaner: - unindent most code of the function by inverting one condition; - streamline code no-error path; - move insert error path outside normal code path; - call radix_tree_preload_end() earlier; No functional changes. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Hugh Dickins <hughd@google.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Cc: Jan Kara <jack@suse.cz> Cc: Mel Gorman <mgorman@suse.de> Cc: Andi Kleen <ak@linux.intel.com> Cc: Matthew Wilcox <willy@linux.intel.com> Cc: Hillf Danton <dhillf@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions