]> www.infradead.org Git - nvme.git/commit
readahead: drop pointless index from force_page_cache_ra()
authorJan Kara <jack@suse.cz>
Tue, 25 Jun 2024 10:18:54 +0000 (12:18 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:27 +0000 (19:30 -0700)
commit878343dfa491e5c29bb6741a798229f051d3c8eb
tree36c782d69bddc6a00d92e62ca5ff41cfb08a54a2
parent7c877586da3178974a8a94577b6045a48377ff25
readahead: drop pointless index from force_page_cache_ra()

Current index to readahead is tracked in readahead_control and properly
updated by page_cache_ra_unbounded() (read_pages() in fact).  So there's
no need to track the index separately in force_page_cache_ra().

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