Subject: Re: kern/25279: NFS read doesn't update atime
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 06/29/2005 10:13:11
On Wed, Jun 29, 2005 at 09:44:03AM +0900, YAMAMOTO Takashi wrote:
> > the atime is updated, but not the mtime. Or do I need to set other flags on
> > the inode to get the mtime updated ?
> > My guess is that the first access cause VOP_GETPAGE to be called with
> > VM_PROT_READ only, because the page is not mapped read/write. Then the write
> > cause another page fault, but this one doesn't call VOP_GETPAGE().
> 
> unless the page was in hole, the first fault maps the page writable
> and there is no second fault.

OK, so VOP_GETPAGE() is only called with READ, even for a writable mapping.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--