The patch titled read_cache_pages() cleanup has been added to the -mm tree. Its filename is read_cache_pages-cleanup.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: read_cache_pages() cleanup From: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Use put_pages_list() instead of opencoding it. Signed-off-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/readahead.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff -puN mm/readahead.c~read_cache_pages-cleanup mm/readahead.c --- a/mm/readahead.c~read_cache_pages-cleanup +++ a/mm/readahead.c @@ -148,13 +148,7 @@ int read_cache_pages(struct address_spac if (!pagevec_add(&lru_pvec, page)) __pagevec_lru_add(&lru_pvec); if (ret) { - while (!list_empty(pages)) { - struct page *victim; - - victim = list_to_page(pages); - list_del(&victim->lru); - page_cache_release(victim); - } + put_pages_list(pages); break; } } _ Patches currently in -mm which might be from hirofumi@xxxxxxxxxxxxxxxxxx are read_cache_pages-cleanup.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