From: Andrew Morton Subject: ksm-count-ksm-merging-pages-for-each-process-fix fix comment typo, remove BUG_ON()s Cc: kernel test robot Cc: Ran Xiaokai Cc: xu xin Cc: Yang Yang Cc: Zeal Robot Cc: Alexey Dobriyan Cc: Feng Tang Cc: Kees Cook Cc: Matthew Wilcox (Oracle) Cc: Ohhoon Kwon Cc: Stephen Brennan Cc: Stephen Rothwell Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- include/linux/mm_types.h | 4 ++-- mm/ksm.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) --- a/include/linux/mm_types.h~ksm-count-ksm-merging-pages-for-each-process-fix +++ a/include/linux/mm_types.h @@ -657,8 +657,8 @@ struct mm_struct { #endif #ifdef CONFIG_KSM /* - * Represet how many pages of this process are - * involved in KSM merging. + * Represent how many pages of this process are involved in KSM + * merging. */ unsigned long ksm_merging_pages; #endif --- a/mm/ksm.c~ksm-count-ksm-merging-pages-for-each-process-fix +++ a/mm/ksm.c @@ -639,7 +639,6 @@ static void remove_node_from_stable_tree else ksm_pages_shared--; - BUG_ON(rmap_item->mm == NULL); rmap_item->mm->ksm_merging_pages--; VM_BUG_ON(stable_node->rmap_hlist_len <= 0); @@ -790,7 +789,6 @@ static void remove_rmap_item_from_tree(s else ksm_pages_shared--; - BUG_ON(rmap_item->mm == NULL); rmap_item->mm->ksm_merging_pages--; VM_BUG_ON(stable_node->rmap_hlist_len <= 0); @@ -2027,7 +2025,6 @@ static void stable_tree_append(struct rm else ksm_pages_shared++; - BUG_ON(rmap_item->mm == NULL); rmap_item->mm->ksm_merging_pages++; } _