The patch titled readahead: call scheme: cleanup has been removed from the -mm tree. Its filename was readahead-call-scheme-cleanup.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ Subject: readahead: call scheme: cleanup From: Fengguang Wu <wfg@xxxxxxxxxxxxxxxx> Merge two similar page_cache_readahead_adaptive() calls into one. No behavior change. Signed-off-by: Fengguang Wu <wfg@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/filemap.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff -puN mm/filemap.c~readahead-call-scheme-cleanup mm/filemap.c --- a/mm/filemap.c~readahead-call-scheme-cleanup +++ a/mm/filemap.c @@ -936,17 +936,13 @@ void do_generic_mapping_read(struct addr find_page: page = find_get_page(mapping, index); if (prefer_adaptive_readahead()) { - if (unlikely(page == NULL)) { - ra.prev_index = prev_index; - page_cache_readahead_adaptive(mapping, - &ra, filp, NULL, - index, last_index - index); - page = find_get_page(mapping, index); - } else if (PageReadahead(page)) { + if (!page || PageReadahead(page)) { ra.prev_index = prev_index; page_cache_readahead_adaptive(mapping, &ra, filp, page, index, last_index - index); + if (!page) + page = find_get_page(mapping, index); } } if (unlikely(page == NULL)) { @@ -1422,13 +1418,11 @@ struct page *filemap_fault(struct vm_are retry_find: page = find_lock_page(mapping, fdata->pgoff); if (prefer_adaptive_readahead() && VM_SequentialReadHint(vma)) { - if (!page) { - page_cache_readahead_adaptive(mapping, ra, file, NULL, - fdata->pgoff, 1); - page = find_lock_page(mapping, fdata->pgoff); - } else if (PageReadahead(page)) { + if (!page || PageReadahead(page)) { page_cache_readahead_adaptive(mapping, ra, file, page, fdata->pgoff, 1); + if (!page) + page = find_lock_page(mapping, fdata->pgoff); } } if (!page) { _ Patches currently in -mm which might be from wfg@xxxxxxxxxxxxxxxx are origin.patch readahead-call-scheme-cleanup.patch readahead-call-scheme-catch-thrashing-on-lookahead-time.patch readahead-call-scheme-doc-fixes-for-readahead.patch readahead-laptop-mode.patch readahead-loop-case.patch readahead-nfsd-case.patch readahead-remove-parameter-ra_max-from-thrashing_recovery_readahead.patch readahead-remove-parameter-ra_max-from-adjust_rala.patch readahead-state-based-method-protect-against-tiny-size.patch readahead-rename-state_based_readahead-to-clock_based_readahead.patch readahead-account-i-o-block-times-for-stock-readahead.patch readahead-rescue_pages-updates.patch readahead-remove-noaction-shrink-events.patch readahead-remove-size-limit-on-read_ahead_kb.patch readahead-remove-size-limit-of-max_sectors_kb-on-read_ahead_kb.patch readahead-partial-sendfile-fix.patch readahead-turn-on-by-default.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html