]> www.infradead.org Git - nvme.git/commit
readahead: fold try_context_readahead() into its single caller
authorJan Kara <jack@suse.cz>
Tue, 25 Jun 2024 10:18:59 +0000 (12:18 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:28 +0000 (19:30 -0700)
commita6eccd5be3e99fd7e707edd73e959d38722bbade
treecfa2d0e53cd8775a26bf2079197cc19447571b70
parent3a7a11a57e464a05bf2ae7ad1e28667890727ed8
readahead: fold try_context_readahead() into its single caller

try_context_readahead() has a single caller page_cache_sync_ra().  Fold
the function there to make ra state modifications more obvious.  No
functional changes.

Link: https://lkml.kernel.org/r/20240625101909.12234-9-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Tested-by: Zhang Peng <zhangpengpeng0808@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/readahead.c