The patch titled Cleanup read_pages() has been added to the -mm tree. Its filename is cleanup-read_pages.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Cleanup read_pages() From: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Current read_pages() assume ->readpages() frees the passed pages. This patch free the pages in ->read_pages(), if those were remaining in the pages_list. So, readpages() just can ignore the remaining pages in pages_list. Signed-off-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Cc: Steven French <sfrench@xxxxxxxxxx> Cc: Miklos Szeredi <miklos@xxxxxxxxxx> Cc: Steven Whitehouse <swhiteho@xxxxxxxxxx> Cc: Trond Myklebust <trond.myklebust@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/readahead.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/readahead.c~cleanup-read_pages mm/readahead.c --- a/mm/readahead.c~cleanup-read_pages +++ a/mm/readahead.c @@ -167,6 +167,8 @@ static int read_pages(struct address_spa if (mapping->a_ops->readpages) { ret = mapping->a_ops->readpages(filp, mapping, pages, nr_pages); + /* Clean up the remaining pages */ + put_pages_list(pages); goto out; } _ Patches currently in -mm which might be from hirofumi@xxxxxxxxxxxxxxxxxx are nfs-fix-nfs_readpages-error-path.patch read_cache_pages-cleanup.patch cleanup-read_pages.patch cifs-readpages-fixes.patch fuse-readpages-cleanup.patch gfs2-readpages-fixes.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