linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Jean-Noel Cordenner <jean-noel.cordenner@bull.net>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [RFC] [patch 2/3] change attribute for ext4: ext4 specific code
Date: Wed, 6 Dec 2006 14:49:34 -0700	[thread overview]
Message-ID: <20061206214934.GA4551@schatzie.adilger.int> (raw)
In-Reply-To: <456DD75A.2010700@bull.net>

On Nov 29, 2006  19:54 +0100, Jean-Noel Cordenner wrote:
> This part of the patch concerns the ext4 code.

I was looking more closely at this code, and wondering two things:
- why not just use the existing inode->i_version field instead of
  adding a new i_change_attribute?  The i_version is not used by
  the VFS at all, and only for detecting directory modifications in
  ext3 (where it has the same semantic as the new i_change_attribute
  anyways).  This avoids bloating the VFS inode more than it already is.
- why not just do an increment of i_version in ext3_do_update_inode()?
  That is ext3_dirty_inode->ext3_mark_inode_dirty->ext3_mark_iloc_dirty()
  and also handles all of the VFS locations that call notify_change().
  This MUST be called anywhere that we make a persistent change to the
  inode in order to flush it to disk.  That would reduce the patch to
  a few lines at most.  I don't think there are any places we need to
  supplement this (even mmap IO or writes to a hole will update mtime).

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

  reply	other threads:[~2006-12-06 21:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 18:54 [RFC] [patch 2/3] change attribute for ext4: ext4 specific code Jean-Noel Cordenner
2006-12-06 21:49 ` Andreas Dilger [this message]
2006-12-13 17:31   ` Cordenner jean noel
2006-12-14 16:03     ` Theodore Tso
2006-12-14 22:57       ` Andreas Dilger
2006-12-15 10:36       ` Cordenner jean noel

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=20061206214934.GA4551@schatzie.adilger.int \
    --to=adilger@clusterfs.com \
    --cc=jean-noel.cordenner@bull.net \
    --cc=linux-ext4@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).