mm: filemap: remove redundant code in do_read_cache_page
authorMel Gorman <mgorman@techsingularity.net>
Tue, 15 Mar 2016 21:55:36 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit32b635298ff4e991d8d8f64dc23782b02eec29c3
tree0ef68aa7b2f91f3de5a73b203db6c99e00d2adac
parent07061aab2f750bbf61337b922aa8a245b5da85e1
mm: filemap: remove redundant code in do_read_cache_page

do_read_cache_page and __read_cache_page duplicate page filler code when
filling the page for the first time.  This patch simply removes the
duplicate logic.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c