]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite79d6fb76e37b3e900c2d30a273eba31a288549b
tree0ef68aa7b2f91f3de5a73b203db6c99e00d2adac
parent44e61b442b166b0e0d3aafee21ad032e019e71bb
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