[lkml]   [2011]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2/2] mlock: do not munlock pages in __do_fault()
    On Mon, Feb 7, 2011 at 4:47 PM, Michel Lespinasse <> wrote:
    > If the page is going to be written to, __do_page needs to break COW.
    > However, the old page (before breaking COW) was never mapped mapped into
    > the current pte (__do_fault is only called when the pte is not present),
    > so vmscan can't have marked the old page as PageMlocked due to being
    > mapped in __do_fault's VMA. Therefore, __do_fault() does not need to worry
    > about clearing PageMlocked() on the old page.
    > Signed-off-by: Michel Lespinasse <>

    Acked-by: Hugh Dickins <>

     \ /
      Last update: 2011-02-08 19:31    [W:0.020 / U:2.344 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site