+ mm-rmap-use-rmap_walk-in-page_referenced.patch added to -mm tree
[email protected]
maintainerSubject: + mm-rmap-use-rmap_walk-in-page_referenced.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 04 Dec 2013 14:16:49 -0800
The patch titled
Subject: mm/rmap: use rmap_walk() in page_referenced()
has been added to the -mm tree. Its filename is
mm-rmap-use-rmap_walk-in-page_referenced.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-rmap-use-rmap_walk-in-page_referenced.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-rmap-use-rmap_walk-in-page_referenced.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: Joonsoo Kim <[email protected]>
Subject: mm/rmap: use rmap_walk() in page_referenced()
Now, we have an infrastructure in rmap_walk() to handle difference from variants of rmap traversing functions.
So, just use it in page_referenced().
In this patch, I change following things.
1. remove some variants of rmap traversing functions. cf> page_referenced_ksm, page_referenced_anon, page_referenced_file
2. introduce new struct page_referenced_arg and pass it to page_referenced_one(), main function of rmap_walk, in order to count reference, to store vm_flags and to check finish condition.
3. mechanical change to use rmap_walk() in page_referenced().
---
include/linux/ksm.h | 2 include/linux/rmap.h | 2 mm/ksm.c | 55 ----------- mm/rmap.c | 200 +++++++++++++---------------------------- 4 files changed, 67 insertions(+), 192 deletions(-)
include/linux/ksm.h renamed from include/linux/ksm.h~mm-rmap-use-rmap_walk-in-page_referenced +0 -2
@@ -73,8 +73,6 @@ static inline void set_page_stable_node(struct page *ksm_might_need_to_copy (struct page *page,struct vm_area_struct *vma,unsigned long address); -int page_referenced_ksm (struct page *page, -struct mem_cgroup *memcg,unsigned long *vm_flags);int rmap_walk_ksm (struct page *page,struct rmap_walk_control *rwc);void ksm_migrate_page (struct page *newpage,struct page *oldpage);
include/linux/rmap.h renamed from include/linux/rmap.h~mm-rmap-use-rmap_walk-in-page_referenced +1 -1
@@ -184,7 +184,7 @@ static inline void page_dup_rmap(structint page_referenced (struct page *,int is_locked,struct mem_cgroup *memcg,unsigned long *vm_flags);int page_referenced_one (struct page *,struct vm_area_struct *, -unsigned long address,unsigned int *mapcount,unsigned long *vm_flags); +unsigned long address,void *arg);#define TTU_ACTION (x) ((x) & TTU_ACTION_MASK)
mm/ksm.c renamed from mm/ksm.c~mm-rmap-use-rmap_walk-in-page_referenced +0 -55
61 lines not on this page · raw message
mm/rmap.c renamed from mm/rmap.c~mm-rmap-use-rmap_walk-in-page_referenced +66 -134
254 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-rmap-recompute-pgoff-for-huge-page.patch mm-rmap-factor-nonlinear-handling-out-of-try_to_unmap_file.patch mm-rmap-factor-lock-function-out-of-rmap_walk_anon.patch mm-rmap-make-rmap_walk-to-get-the-rmap_walk_control-argument.patch mm-rmap-extend-rmap_walk_xxx-to-cope-with-different-cases.patch mm-rmap-use-rmap_walk-in-try_to_unmap.patch mm-rmap-use-rmap_walk-in-try_to_munlock.patch mm-rmap-use-rmap_walk-in-page_referenced.patch mm-rmap-use-rmap_walk-in-page_mkclean.patch