Skip to content
Snippets Groups Projects
Commit a335b2e1 authored by Ryota Ozaki's avatar Ryota Ozaki Committed by Jiri Kosina
Browse files

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: default avatarRyota Ozaki <ozaki.ryota@gmail.com>
Acked-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ec4f2ac4
No related merge requests found
...@@ -63,7 +63,7 @@ extern void flush_icache_user_range(struct vm_area_struct *vma, ...@@ -63,7 +63,7 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
struct page *page, unsigned long addr, int len); struct page *page, unsigned long addr, int len);
#endif #endif
/* This is used only in do_no_page and do_swap_page. */ /* This is used only in __do_fault and do_swap_page. */
#define flush_icache_page(vma, page) \ #define flush_icache_page(vma, page) \
flush_icache_user_range((vma), (page), 0, 0) flush_icache_user_range((vma), (page), 0, 0)
......
...@@ -113,7 +113,7 @@ void flush_icache_range(unsigned long start, unsigned long end) ...@@ -113,7 +113,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
} }
/* /*
* This one is called from do_no_page(), do_swap_page() and install_page(). * This one is called from __do_fault() and do_swap_page().
*/ */
void flush_icache_page(struct vm_area_struct *vma, struct page *page) void flush_icache_page(struct vm_area_struct *vma, struct page *page)
{ {
......
...@@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range); ...@@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range);
* handle_pte_fault chooses page fault handler according to an entry * handle_pte_fault chooses page fault handler according to an entry
* which was read non-atomically. Before making any commitment, on * which was read non-atomically. Before making any commitment, on
* those architectures or configurations (e.g. i386 with PAE) which * those architectures or configurations (e.g. i386 with PAE) which
* might give a mix of unmatched parts, do_swap_page and do_file_page * might give a mix of unmatched parts, do_swap_page and do_nonlinear_fault
* must check under lock before unmapping the pte and proceeding * must check under lock before unmapping the pte and proceeding
* (but do_wp_page is only called after already making such a check; * (but do_wp_page is only called after already making such a check;
* and do_anonymous_page and do_no_page can safely check later on). * and do_anonymous_page can safely check later on).
*/ */
static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd, static inline int pte_unmap_same(struct mm_struct *mm, pmd_t *pmd,
pte_t *page_table, pte_t orig_pte) pte_t *page_table, pte_t orig_pte)
...@@ -2314,7 +2314,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma, ...@@ -2314,7 +2314,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma,
* bit after it clear all dirty ptes, but before a racing * bit after it clear all dirty ptes, but before a racing
* do_wp_page installs a dirty pte. * do_wp_page installs a dirty pte.
* *
* do_no_page is protected similarly. * __do_fault is protected similarly.
*/ */
if (!page_mkwrite) { if (!page_mkwrite) {
wait_on_page_locked(dirty_page); wait_on_page_locked(dirty_page);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment