]> www.infradead.org Git - nvme.git/commit
readahead: disentangle async and sync readahead
authorJan Kara <jack@suse.cz>
Tue, 25 Jun 2024 10:18:58 +0000 (12:18 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:27 +0000 (19:30 -0700)
commit3a7a11a57e464a05bf2ae7ad1e28667890727ed8
tree0d2bc1c75ad90dc9492e7999f2ebb8fc141fdda0
parent0b1efc3e78d12278a8c0f2c665d66564a2cb965f
readahead: disentangle async and sync readahead

Both async and sync readahead are handled by ondemand_readahead()
function.  However there isn't actually much in common.  Just move async
related parts into page_cache_ra_async() and sync related parts to
page_cache_ra_sync().  No functional changes.

Link: https://lkml.kernel.org/r/20240625101909.12234-8-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