Re: [PATCH][RFC][BUG] updating the ctime and mtime time stamps in msync()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakob Oestergaard <jakob@...>
Cc: <Valdis.Kletnieks@...>, Anton Salikhmetov <salikhmetov@...>, <linux-mm@...>, <linux-kernel@...>
Date: Wednesday, January 9, 2008 - 7:41 pm

On Wed, 9 Jan 2008 23:33:40 +0100
Jakob Oestergaard <jakob@unthought.net> wrote:

 
You are absolutely right.  If we wrote dirty pages to disk, the ctime
and mtime updates must happen no later than msync or close time.

I guess a third possible time (if we want to minimize the number of
updates) would be when natural syncing of the file data to disk, by
other things in the VM, would be about to clear the I_DIRTY_PAGES
flag on the inode.  That way we do not need to remember any special
"we already flushed all dirty data, but we have not updated the mtime
and ctime yet" state.

Does this sound reasonable?

-- 
All rights reversed.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Rik van Riel, (Wed Jan 9, 7:41 pm)
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Jakob Oestergaard, (Thu Jan 10, 4:51 am)
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Anton Salikhmetov, (Thu Jan 10, 6:53 am)
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Anton Salikhmetov, (Thu Jan 10, 11:56 am)
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Anton Salikhmetov, (Thu Jan 10, 12:40 pm)
Re: [PATCH][RFC][BUG] updating the ctime and mtime time stam..., Anton Salikhmetov, (Wed Jan 9, 11:31 am)