mm/readahead: pass readahead_control to force_page_cache_ra
authorDavid Howells <dhowells@redhat.com>
Fri, 16 Oct 2020 03:06:24 +0000 (20:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:16 +0000 (11:11 -0700)
commit7b3df3b9ac7e807bf1b6fcc03077bd80068f3d3c
tree04a4b6ada15f6e5cb28f9dae0fbaa6458c3ab6d4
parent6e4af69ae9b7ca1bc2f82d3bf061ef8abedeabc4
mm/readahead: pass readahead_control to force_page_cache_ra

Reimplement force_page_cache_readahead() as a wrapper around
force_page_cache_ra().  Pass the existing readahead_control from
page_cache_sync_readahead().

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric Biggers <ebiggers@google.com>
Link: https://lkml.kernel.org/r/20200903140844.14194-7-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/internal.h
mm/readahead.c