Messages in this thread Patch in this message | | | From | Srikar Dronamraju <> | Date | Fri, 01 Apr 2011 20:02:38 +0530 | Subject | [PATCH v3 2.6.39-rc1-tip 1/26] 1: mm: replace_page() loses static attribute |
| |
User bkpt will use background page replacement approach to insert/delete breakpoints. Background page replacement approach is based on replace_page. Hence replace_page() loses its static attribute. This is a precursor to moving replace_page() to mm/memory.c
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> --- include/linux/mm.h | 2 ++ mm/ksm.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h index 7606d7d..089bda4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1008,6 +1008,8 @@ void account_page_writeback(struct page *page); int set_page_dirty(struct page *page); int set_page_dirty_lock(struct page *page); int clear_page_dirty_for_io(struct page *page); +int replace_page(struct vm_area_struct *vma, struct page *page, + struct page *kpage, pte_t orig_pte); /* Is the vma a continuation of the stack vma above it? */ static inline int vma_stack_continue(struct vm_area_struct *vma, unsigned long addr) diff --git a/mm/ksm.c b/mm/ksm.c index 1bbe785..f444158 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -760,7 +760,7 @@ out: * * Returns 0 on success, -EFAULT on failure. */ -static int replace_page(struct vm_area_struct *vma, struct page *page, +int replace_page(struct vm_area_struct *vma, struct page *page, struct page *kpage, pte_t orig_pte) { struct mm_struct *mm = vma->vm_mm;
| |