lkml.org 
[lkml]   [2008]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapped files


On Fri, 18 Jan 2008, Peter Zijlstra wrote:
>
> Bah, and will break on s390... so we'd need a page_mkclean() variant
> that doesn't actually clear dirty.

No, we simply want to not play all these very expensive games with dirty
in the first place.

Guys, mmap access times aren't important enough for this. It's not
specified closely enough, and people don't care enough.

Of the patches around so far, the best one by far seems to be the simple
four-liner from Miklos.

And even in that four-liner, I suspect that the *last* two lines are
actually incorrect: there's no point in updating the file time when the
page *becomes* dirty, we should update the file time when it is marked
clean, and "msync(MS_SYNC)" should update it as part of *that*.

So I think the file time update should be part of just the page writeout
logic, not by msync() or page faulting itself or anything like that.

Linus


\
 
 \ /
  Last update: 2008-01-18 19:03    [W:0.076 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site