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@xxxxxxxxxxxxxxxxxx> Signed-off-by: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> --- 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; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>