mm-filemap-split-filemap_readahead-out-of-filemap_get_pages.patch removed from -mm tree
The patch titled
Subject: mm/filemap: split filemap_readahead out of filemap_get_pages
has been removed from the -mm tree. Its filename was
mm-filemap-split-filemap_readahead-out-of-filemap_get_pages.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm/filemap: split filemap_readahead out of filemap_get_pages
This simplifies the error handling.
---
mm/filemap.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-split-filemap_readahead-out-of-filemap_get_pages +14 -5
@@ -2330,6 +2330,17 @@ error:return error; } +static int filemap_readahead (struct kiocb *iocb,struct file *file, +struct address_space *mapping,struct page *page, +pgoff_t last_index) +{ +if (iocb->ki_flags &IOCB_NOIO ) +return -EAGAIN ; +page_cache_async_readahead (mapping, &file->f_ra, file, page, + page->index, last_index - page->index); +return 0 ; +} +static int filemap_get_pages (struct kiocb *iocb,struct iov_iter *iter,struct pagevec *pvec) {
@@ -2367,17 +2378,15 @@ find_page: got_pages: {struct page *page = pvec->pages[pvec->nr -1 ]; -pgoff_t pg_index = page->index;if (PageReadahead (page)) { -if (iocb->ki_flags &IOCB_NOIO ) { + err =filemap_readahead (iocb, filp, mapping, page, + last_index); +if (err) {put_page (page); pvec->nr--; - err = -EAGAIN ; goto err; } -page_cache_async_readahead (mapping, ra, filp, page, - pg_index, last_index - pg_index); }if (!PageUptodate (page)) {
_
Patches currently in -mm which might be from [email protected] are
mm-make-pagecache-tagged-lookups-return-only-head-pages.patch mm-shmem-use-pagevec_lookup-in-shmem_unlock_mapping.patch mm-swap-optimise-get_shadow_from_swap_cache.patch mm-add-fgp_entry.patch mm-filemap-rename-find_get_entry-to-mapping_get_entry.patch mm-filemap-add-helper-for-finding-pages.patch mm-filemap-add-helper-for-finding-pages-fix.patch mm-filemap-add-mapping_seek_hole_data.patch mm-filemap-add-mapping_seek_hole_data-fix.patch iomap-use-mapping_seek_hole_data.patch mm-add-and-use-find_lock_entries.patch mm-add-and-use-find_lock_entries-fix.patch mm-add-an-end-parameter-to-find_get_entries.patch mm-add-an-end-parameter-to-pagevec_lookup_entries.patch mm-remove-nr_entries-parameter-from-pagevec_lookup_entries.patch mm-pass-pvec-directly-to-find_get_entries.patch mm-remove-pagevec_lookup_entries.patch