From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: [long] per-mountpoint readonly Date: Thu, 29 May 2003 10:31:11 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030529093111.GO14138@parcelfarce.linux.theplanet.co.uk> References: <20030529005549.GJ14138@parcelfarce.linux.theplanet.co.uk> <1054182023.10017.53.camel@zaphod> <20030529082127.GL14138@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Shaya Potter , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:13993 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S262023AbTE2JRy (ORCPT ); Thu, 29 May 2003 05:17:54 -0400 To: Trond Myklebust Content-Disposition: inline In-Reply-To: List-Id: linux-fsdevel.vger.kernel.org On Thu, May 29, 2003 at 11:02:01AM +0200, Trond Myklebust wrote: > >>>>> " " == viro writes: > > > All callers that have inode obtained by struct file * are > > trivial. We have what we need there. Now, a large group > > actually comes from the same kind of place - it's ->readdir() > > in the majority of filesystems. We might be better off just > > taking that to caller of ->readdir() - provided that NFS folks > > are OK with that (nfs does _not_ update atime on client after > > readdir()). In any case, we have struct file * there anyway. > > Provided that you are not planning on overriding the S_NOATIME flag, > NFS should be fine. We just want to suppress update_atime() for *all* > cases since we have no control over how the server updates this value. Umm... Actually, I thought about per-mountpoint noatime, but we can do (mnt->mnt_flags & MNT_NOATIME) | (s->s_flags & S_NOATIME) just fine, so NFS can still disable it just fine. Is there any network filesystem that would * want atime updated by client for *some* directory accesses and * want it left alone for readdir()? If not, we can clean the things up nicely. NFS is OK, what about the rest?