+ mm-filemap-move-radix-tree-hole-searching-here.patch added to -mm tree
Subsystems (4)
[email protected]
maintainerSubject: + mm-filemap-move-radix-tree-hole-searching-here.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 04 Feb 2014 15:14:46 -0800
The patch titled
Subject: mm: filemap: move radix tree hole searching here
has been added to the -mm tree. Its filename is
mm-filemap-move-radix-tree-hole-searching-here.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-filemap-move-radix-tree-hole-searching-here.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-filemap-move-radix-tree-hole-searching-here.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Johannes Weiner <[email protected]>
Subject: mm: filemap: move radix tree hole searching here
The radix tree hole searching code is only used for page cache, for example the readahead code trying to get a a picture of the area surrounding a fault.
It sufficed to rely on the radix tree definition of holes, which is "empty tree slot". But this is about to change, though, as shadow page descriptors will be stored in the page cache after the actual pages get evicted from memory.
Move the functions over to mm/filemap.c and make them native page cache operations, where they can later be adapted to handle the new definition of "page cache hole".
---
fs/nfs/blocklayout/blocklayout.c | 2 include/linux/pagemap.h | 5 + include/linux/radix-tree.h | 4 - lib/radix-tree.c | 75 ---------------------------- mm/filemap.c | 76 +++++++++++++++++++++++++++++ mm/readahead.c | 4 - 6 files changed, 84 insertions(+), 82 deletions(-)
fs/nfs/blocklayout/blocklayout.c renamed from fs/nfs/blocklayout/blocklayout.c~mm-filemap-move-radix-tree-hole-searching-here +1 -1
@@ -1213,7 +1213,7 @@ static u64 pnfs_num_cont_bytes(struct in end =DIV_ROUND_UP (i_size_read (inode),PAGE_CACHE_SIZE );if (end !=NFS_I (inode)->npages) {rcu_read_lock (); - end =radix_tree_next_hole (&mapping->page_tree, idx +1 ,ULONG_MAX ); + end =page_cache_next_hole (mapping, idx +1 ,ULONG_MAX );rcu_read_unlock (); }
include/linux/pagemap.h renamed from include/linux/pagemap.h~mm-filemap-move-radix-tree-hole-searching-here +5 -0
@@ -243,6 +243,11 @@ static inline struct page *page_cache_altypedef int filler_t (void *,struct page *); +pgoff_t page_cache_next_hole (struct address_space *mapping, +pgoff_t index,unsigned long max_scan); +pgoff_t page_cache_prev_hole (struct address_space *mapping, +pgoff_t index,unsigned long max_scan); +extern struct page *find_get_page (struct address_space *mapping,pgoff_t index); extern struct page * find_lock_page(struct address_space *mapping,
include/linux/radix-tree.h renamed from include/linux/radix-tree.h~mm-filemap-move-radix-tree-hole-searching-here +0 -4
@@ -227,10 +227,6 @@ radix_tree_gang_lookup(struct radix_treeunsigned int radix_tree_gang_lookup_slot (struct radix_tree_root *root,void ***results,unsigned long *indices,unsigned long first_index,unsigned int max_items); -unsigned long radix_tree_next_hole (struct radix_tree_root *root, -unsigned long index,unsigned long max_scan); -unsigned long radix_tree_prev_hole (struct radix_tree_root *root, -unsigned long index,unsigned long max_scan);int radix_tree_preload (gfp_t gfp_mask);int radix_tree_maybe_preload (gfp_t gfp_mask);void radix_tree_init (void );
lib/radix-tree.c renamed from lib/radix-tree.c~mm-filemap-move-radix-tree-hole-searching-here +0 -75
81 lines not on this page · raw message
mm/filemap.c renamed from mm/filemap.c~mm-filemap-move-radix-tree-hole-searching-here +76 -0
82 lines not on this page · raw message
mm/readahead.c renamed from mm/readahead.c~mm-filemap-move-radix-tree-hole-searching-here +2 -2
@@ -347,7 +347,7 @@ static pgoff_t count_history_pages(strucpgoff_t head;rcu_read_lock (); - head =radix_tree_prev_hole (&mapping->page_tree, offset -1 , max); + head =page_cache_prev_hole (mapping, offset -1 , max);rcu_read_unlock ();return offset -1 - head;
@@ -427,7 +427,7 @@ ondemand_readahead(struct address_spacepgoff_t start;rcu_read_lock (); - start =radix_tree_next_hole (&mapping->page_tree, offset+1 ,max); + start =page_cache_next_hole (mapping, offset +1 , max);rcu_read_unlock ();if (!start || start - offset > max)
_
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 mm-keep-page-cache-radix-tree-nodes-in-check.patch linux-next.patch
debugging-keep-track-of-page-owners.patch