From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Neil Brown <neilb@suse.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH against 2.6.14] truncate() or ftruncate shouldn't change mtime if size doesn't change.
Date: Mon, 31 Oct 2005 19:40:19 -0500 [thread overview]
Message-ID: <1130805619.8812.24.camel@lade.trondhjem.org> (raw)
In-Reply-To: <17254.41056.197429.949418@cse.unsw.edu.au>
On Tue, 2005-11-01 at 09:53 +1100, Neil Brown wrote:
> On Monday October 31, trond.myklebust@fys.uio.no wrote:
> >
> > What we can, however, do is to ensure that truncate() and ftruncate()
> > only set ATTR_SIZE, but ensure that may_open() sets ATTR_MTIME|
> > ATTR_CTIME as well.
>
> Thanks. This makes lots of sense, in that it gives power to the
> filesystem. We should keep the optimisations in placed where the
> filesystem can over-ride them, just as inode_setattr.
>
> So, here is a revised patch.
> Comment?
Just one. Don't most of the inode->i_op->truncate() methods on local
filesystems call mark_inode_dirty()?
If so, then the call at the end of inode_setattr() will be superfluous
for the case where ia_valid==ATTR_SIZE, since vmtruncate() will dirty
the inode for us.
Otherwise, this patch looks great!
Cheers,
Trond
prev parent reply other threads:[~2005-11-01 0:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20051031173358.9566.patches@notabene>
2005-10-31 6:34 ` NeilBrown
2005-10-31 7:48 ` Andrew Morton
2005-10-31 9:48 ` Anton Altaparmakov
2005-10-31 10:16 ` Anton Altaparmakov
2005-10-31 10:41 ` Neil Brown
2005-10-31 10:30 ` Neil Brown
2005-10-31 10:42 ` Anton Altaparmakov
2005-10-31 12:51 ` Trond Myklebust
2005-10-31 13:37 ` Trond Myklebust
2005-10-31 22:53 ` Neil Brown
2005-11-01 0:40 ` Trond Myklebust [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1130805619.8812.24.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®