• Peter Zijlstra's avatar
    [PATCH] mm: msync() cleanup · 204ec841
    Peter Zijlstra authored
    With the tracking of dirty pages properly done now, msync doesn't need to scan
    the PTEs anymore to determine the dirty status.
    
    From: Hugh Dickins <hugh@veritas.com>
    
    In looking to do that, I made some other tidyups: can remove several
    #includes, and sys_msync loop termination not quite right.
    
    Most of those points are criticisms of the existing sys_msync, not of your
    patch.  In particular, the loop termination errors were introduced in 2.6.17:
    I did notice this shortly before it came out, but decided I was more likely to
    get it wrong myself, and make matters worse if I tried to rush a last-minute
    fix in.  And it's not terribly likely to go wrong, nor disastrous if it does
    go wrong (may miss reporting an unmapped area; may also fsync file of a
    following vma).
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    204ec841
msync.c 2.4 KB