mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix.patch removed from -mm tree
Subsystems (4)
[email protected]
maintainerSubject: [folded-merged] mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 03 Apr 2014 14:05:01 -0700
The patch titled
Subject: mm: __find_get_page() -> find_get_entry()
has been removed from the -mm tree. Its filename was
mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix.patch
This patch was dropped because it was folded into mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees.patch
------------------------------------------------------
From: Johannes Weiner <[email protected]>
Subject: mm: __find_get_page() -> find_get_entry()
__find_get_page() -> find_get_entry()__find_lock_page() -> find_lock_entry()__find_get_pages() -> find_get_entries()__pagevec_lookup() -> pagevec_lookup_entries()
Also update and fix stale kerneldocs and revert gratuitous whitespace changes.
Based on feedback from Mel Gorman.
---
include/linux/pagemap.h | 8 ++-- include/linux/pagevec.h | 6 ++- mm/filemap.c | 65 +++++++++++++++++++------------------- mm/mincore.c | 2 - mm/shmem.c | 12 +++---- mm/swap.c | 31 +++++++++--------- mm/truncate.c | 8 ++-- 7 files changed, 70 insertions(+), 62 deletions(-)
include/linux/pagemap.h renamed from include/linux/pagemap.h~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +4 -4
@@ -248,14 +248,14 @@ pgoff_t page_cache_next_hole(struct addrpgoff_t page_cache_prev_hole (struct address_space *mapping,pgoff_t index,unsigned long max_scan); -struct page *__find_get_page (struct address_space *mapping,pgoff_t offset); +struct page *find_get_entry (struct address_space *mapping,pgoff_t offset);struct page *find_get_page (struct address_space *mapping,pgoff_t offset); -struct page *__find_lock_page (struct address_space *mapping,pgoff_t offset); +struct page *find_lock_entry (struct address_space *mapping,pgoff_t offset);struct page *find_lock_page (struct address_space *mapping,pgoff_t offset);struct page *find_or_create_page (struct address_space *mapping,pgoff_t index,gfp_t gfp_mask); -unsigned __find_get_pages (struct address_space *mapping,pgoff_t start, -unsigned int nr_pages,struct page **pages, +unsigned find_get_entries (struct address_space *mapping,pgoff_t start, +unsigned int nr_entries,struct page **entries,pgoff_t *indices);unsigned find_get_pages (struct address_space *mapping,pgoff_t start,unsigned int nr_pages,struct page **pages);
include/linux/pagevec.h renamed from include/linux/pagevec.h~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +4 -2
@@ -22,8 +22,10 @@ struct pagevec {void __pagevec_release (struct pagevec *pvec);void __pagevec_lru_add (struct pagevec *pvec); -unsigned __pagevec_lookup (struct pagevec *pvec,struct address_space *mapping, -pgoff_t start,unsigned nr_pages,pgoff_t *indices); +unsigned pagevec_lookup_entries (struct pagevec *pvec, +struct address_space *mapping, +pgoff_t start,unsigned nr_entries, +pgoff_t *indices);void pagevec_remove_exceptionals (struct pagevec *pvec);unsigned pagevec_lookup (struct pagevec *pvec,struct address_space *mapping,pgoff_t start,unsigned nr_pages);
mm/filemap.c renamed from mm/filemap.c~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +34 -31
143 lines not on this page · raw message
mm/mincore.c renamed from mm/mincore.c~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +1 -1
@@ -72,7 +72,7 @@ static unsigned char mincore_page(struct*/ #ifdef CONFIG_SWAP if (shmem_mapping (mapping)) { - page =__find_get_page (mapping, pgoff); + page =find_get_entry (mapping, pgoff);/* * shmem/tmpfs may return swap: account for swapcache * page too.
mm/shmem.c renamed from mm/shmem.c~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +6 -6
@@ -363,8 +363,8 @@ void shmem_unlock_mapping(struct address* Avoid pagevec_lookup(): find_get_pages() returns 0 as if it * has finished, if it hits a row of PAGEVEC_SIZE swap entries. */ - pvec.nr =__find_get_pages (mapping, index, -PAGEVEC_SIZE , pvec.pages, indices); + pvec.nr =find_get_entries (mapping, index, +PAGEVEC_SIZE , pvec.pages, indices);if (!pvec.nr)break ; index = indices[pvec.nr -1 ] +1 ;
@@ -400,7 +400,7 @@ static void shmem_undo_range(struct inodpagevec_init (&pvec,0 ); index = start;while (index < end) { - pvec.nr =__find_get_pages (mapping, index, + pvec.nr =find_get_entries (mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE ), pvec.pages, indices);if (!pvec.nr)
@@ -470,7 +470,7 @@ static void shmem_undo_range(struct inodfor ( ; ; ) {cond_resched (); - pvec.nr =__find_get_pages (mapping, index, + pvec.nr =find_get_entries (mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE ), pvec.pages, indices);if (!pvec.nr) {
@@ -1015,7 +1015,7 @@ static int shmem_getpage_gfp(struct inodreturn -EFBIG ; repeat: swap.val =0 ; - page =__find_lock_page (mapping, index); + page =find_lock_entry (mapping, index);if (radix_tree_exceptional_entry (page)) { swap =radix_to_swp_entry (page); page =NULL ;
@@ -1669,7 +1669,7 @@ static pgoff_t shmem_seek_hole_data(strupagevec_init (&pvec,0 ); pvec.nr =1 ;/* start small: we may be there already */ while (!done) { - pvec.nr =__find_get_pages (mapping, index, + pvec.nr =find_get_entries (mapping, index, pvec.nr, pvec.pages, indices);if (!pvec.nr) {if (whence ==SEEK_DATA )
mm/swap.c renamed from mm/swap.c~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +17 -14
@@ -948,28 +948,31 @@ void __pagevec_lru_add(struct pagevec *pEXPORT_SYMBOL (__pagevec_lru_add);/** -* __pagevec_lookup - gang pagecache lookup +* pagevec_lookup_entries - gang pagecache lookup * @pvec: Where the resulting entries are placed * @mapping: The address_space to search * @start: The starting entry index -* @nr_pages: The maximum number of entries +* @nr_entries: The maximum number of entries * @indices: The cache indices corresponding to the entries in @pvec * -* __pagevec_lookup() will search for and return a group of up to -* @nr_pages pages and shadow entries in the mapping. All entries are -* placed in @pvec. __pagevec_lookup() takes a reference against -* actual pages in @pvec. +* pagevec_lookup_entries() will search for and return a group of up +* to @nr_entries pages and shadow entries in the mapping. All +* entries are placed in @pvec. pagevec_lookup_entries() takes a +* reference against actual pages in @pvec. * * The search returns a group of mapping-contiguous entries with * ascending indexes. There may be holes in the indices due to * not-present entries. * -* __pagevec_lookup() returns the number of entries which were found. +* pagevec_lookup_entries() returns the number of entries which were +* found. */ -unsigned __pagevec_lookup (struct pagevec *pvec,struct address_space *mapping, -pgoff_t start,unsigned nr_pages,pgoff_t *indices) +unsigned pagevec_lookup_entries (struct pagevec *pvec, +struct address_space *mapping, +pgoff_t start,unsigned nr_pages, +pgoff_t *indices) { - pvec->nr =__find_get_pages (mapping, start, nr_pages, + pvec->nr =find_get_entries (mapping, start, nr_pages, pvec->pages, indices);return pagevec_count (pvec); }
@@ -978,10 +981,10 @@ unsigned __pagevec_lookup(struct pagevec* pagevec_remove_exceptionals - pagevec exceptionals pruning * @pvec: The pagevec to prune * -* __pagevec_lookup() fills both pages and exceptional radix tree -* entries into the pagevec. This function prunes all exceptionals -* from @pvec without leaving holes, so that it can be passed on to -* page-only pagevec operations. +* pagevec_lookup_entries() fills both pages and exceptional radix +* tree entries into the pagevec. This function prunes all +* exceptionals from @pvec without leaving holes, so that it can be +* passed on to page-only pagevec operations. */ void pagevec_remove_exceptionals (struct pagevec *pvec) {
mm/truncate.c renamed from mm/truncate.c~mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees-fix-fix +4 -4
@@ -255,7 +255,7 @@ void truncate_inode_pages_range(struct apagevec_init (&pvec,0 ); index = start; -while (index < end &&__pagevec_lookup (&pvec, mapping, index, +while (index < end &&pagevec_lookup_entries (&pvec, mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE ), indices)) {mem_cgroup_uncharge_start ();
@@ -331,7 +331,7 @@ void truncate_inode_pages_range(struct a index = start;for ( ; ; ) {cond_resched (); -if (!__pagevec_lookup (&pvec, mapping, index, +if (!pagevec_lookup_entries (&pvec, mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE ), indices)) {if (index == start)
@@ -423,7 +423,7 @@ unsigned long invalidate_mapping_pages(s*/ pagevec_init (&pvec,0 ); -while (index <= end &&__pagevec_lookup (&pvec, mapping, index, +while (index <= end &&pagevec_lookup_entries (&pvec, mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE -1 ) +1 , indices)) {mem_cgroup_uncharge_start ();
@@ -532,7 +532,7 @@ int invalidate_inode_pages2_range(structcleancache_invalidate_inode (mapping);pagevec_init (&pvec,0 ); index = start; -while (index <= end &&__pagevec_lookup (&pvec, mapping, index, +while (index <= end &&pagevec_lookup_entries (&pvec, mapping, index,min (end - index, (pgoff_t )PAGEVEC_SIZE -1 ) +1 , indices)) {mem_cgroup_uncharge_start ();
_
Patches currently in -mm which might be from [email protected] are
mm-vmscan-respect-numa-policy-mask-when-shrinking-slab-on-direct-reclaim.patch mm-vmscan-move-call-to-shrink_slab-to-shrink_zones.patch mm-vmscan-remove-shrink_control-arg-from-do_try_to_free_pages.patch mm-vmstat-fix-up-zone-state-accounting.patch fs-cachefiles-use-add_to_page_cache_lru.patch lib-radix-tree-radix_tree_delete_item.patch mm-shmem-save-one-radix-tree-lookup-when-truncating-swapped-pages.patch mm-filemap-move-radix-tree-hole-searching-here.patch mm-fs-prepare-for-non-page-entries-in-page-cache-radix-trees.patch mm-fs-store-shadow-entries-in-page-cache.patch mm-thrash-detection-based-file-cache-sizing.patch lib-radix_tree-tree-node-interface.patch lib-radix_tree-tree-node-interface-fix.patch mm-keep-page-cache-radix-tree-nodes-in-check.patch mm-keep-page-cache-radix-tree-nodes-in-check-fix.patch mm-keep-page-cache-radix-tree-nodes-in-check-fix-fix.patch mm-keep-page-cache-radix-tree-nodes-in-check-fix-fix-fix.patch drop_caches-add-some-documentation-and-info-message.patch