[lkml]   [2011]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] mm: Fix out-of-date comments which refers non-existent functions
    From: Ryota Ozaki <>

    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 <>
    mm/memory.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    I'm not familiar with the codes very much, so the fix may be wrong.

    diff --git a/mm/memory.c b/mm/memory.c
    index 31250fa..3fbf32a 100644
    --- a/mm/memory.c
    +++ b/mm/memory.c
    @@ -2115,10 +2115,10 @@ EXPORT_SYMBOL_GPL(apply_to_page_range);
    * handle_pte_fault chooses page fault handler according to an entry
    * which was read non-atomically. Before making any commitment, on
    * 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
    * (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,
    pte_t *page_table, pte_t orig_pte)
    @@ -2316,7 +2316,7 @@ reuse:
    * bit after it clear all dirty ptes, but before a racing
    * do_wp_page installs a dirty pte.
    - * do_no_page is protected similarly.
    + * __do_fault is protected similarly.
    if (!page_mkwrite) {

     \ /
      Last update: 2011-02-09 15:47    [W:0.031 / U:47.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site