lkml.org 
[lkml]   [2003]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] nonlinear oddities
    On Thu, 6 Mar 2003, Hugh Dickins wrote:
    > 1. Revert MAP_NONLINEAR and VM_NONLINEAR: I can easily imagine wanting
    > VM_NONLINEAR in future, warning that vma is unusual, but currently it's
    > not useful: install_page just needs to SetPageAnon if the page is put
    > somewhere try_to_unmap_obj_one wouldn't be able to find it.

    Now I think about it more, install_page's SetPageAnon is not good at all.
    That (unlocked) page may already be mapped into other vmas as a shared
    file page, non-zero mapcount, we can't suddenly switch it to Anon
    (pte_chained) without doing the work to handle that case.

    Before Ingo's file-offset-in-pte, it would have been consistent without
    any SetPageAnon there, because the remapped pages would be unreliable
    unless locked, and having them unfindable is equivalent to being locked.

    But if we're to bother with file-offset-in-pte, then we have to bother
    with finding the remapped pages, handling mapped-earlier case properly.

    Hugh

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:33    [W:4.489 / U:1.836 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site