]> git.baikalelectronics.ru Git - kernel.git/commit
mm/filemap: don't cast ->readpage to filler_t for do_read_cache_page
authorChristoph Hellwig <hch@lst.de>
Fri, 12 Jul 2019 03:55:20 +0000 (20:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Jul 2019 18:05:43 +0000 (11:05 -0700)
commit83140726ea787f9b09078bac0f4b017d0c47a6bd
treeb4dfe0460ae4f6449c1735002e62ec345a3979a5
parent7c644e92f5036d84abe79ef8bdc05638dc56f2f5
mm/filemap: don't cast ->readpage to filler_t for do_read_cache_page

We can just pass a NULL filler and do the right thing inside of
do_read_cache_page based on the NULL parameter.

Link: http://lkml.kernel.org/r/20190520055731.24538-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pagemap.h
mm/filemap.c