Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: Fix out-of-date comments which refers non-existent functions

do_file_page and do_no_page don't exist anymore, but some comments
still refers them. The patch fixes them by replacing them with
existing ones.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Ryota Ozaki and committed by
Jiri Kosina
a335b2e1 ec4f2ac4

+5 -5
+1 -1
arch/alpha/include/asm/cacheflush.h
··· 63 63 struct page *page, unsigned long addr, int len); 64 64 #endif 65 65 66 - /* This is used only in do_no_page and do_swap_page. */ 66 + /* This is used only in __do_fault and do_swap_page. */ 67 67 #define flush_icache_page(vma, page) \ 68 68 flush_icache_user_range((vma), (page), 0, 0) 69 69
+1 -1
arch/avr32/mm/cache.c
··· 113 113 } 114 114 115 115 /* 116 - * This one is called from do_no_page(), do_swap_page() and install_page(). 116 + * This one is called from __do_fault() and do_swap_page(). 117 117 */ 118 118 void flush_icache_page(struct vm_area_struct *vma, struct page *page) 119 119 {
+3 -3
mm/memory.c
··· 2115 2115 * handle_pte_fault chooses page fault handler according to an entry 2116 2116 * which was read non-atomically. Before making any commitment, on 2117 2117 * those architectures or configurations (e.g. i386 with PAE) which 2118 - * might give a mix of unmatched parts, do_swap_page and do_file_page 2118 + * might give a mix of unmatched parts, do_swap_page and do_nonlinear_fault 2119 2119 * must check under lock before unmapping the pte and proceeding 2120 2120 * (but do_wp_page is only called after already making such a check; 2121 - * and do_anonymous_page and do_no_page can safely check later on). 2121 + * and do_anonymous_page can safely check later on). 2122 2122 */ 2123 2123 static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd, 2124 2124 pte_t *page_table, pte_t orig_pte) ··· 2314 2314 * bit after it clear all dirty ptes, but before a racing 2315 2315 * do_wp_page installs a dirty pte. 2316 2316 * 2317 - * do_no_page is protected similarly. 2317 + * __do_fault is protected similarly. 2318 2318 */ 2319 2319 if (!page_mkwrite) { 2320 2320 wait_on_page_locked(dirty_page);