All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Chris Mason <chris.mason@oracle.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] Properly init address_space->writeback_index
Date: Thu, 14 Aug 2008 12:55:10 -0700	[thread overview]
Message-ID: <20080814125510.8a2d1faf.akpm@linux-foundation.org> (raw)
In-Reply-To: <1218742533.15342.409.camel@think.oraclecorp.com>

On Thu, 14 Aug 2008 15:35:33 -0400
Chris Mason <chris.mason@oracle.com> wrote:

> > 
> > Note that this assumes that a filesystem which implements
> > ->alloc_inode() will call inode_init_once() within its ->alloc_inode().
> > 
> > Which means, I think, that we can just remove inode_init_once()
> > altogether and move its initialisations into alloc_inode() along with
> > all the existing ones.
> > 
> > What do you think?
> > 
> 
> There's the silent breakage of out of tree FS,

We could leave

void inode_init_once(struct inode *inode)
{
	WARN_ON_ONCE(1);
}
EXPORT_SYMBOL(inode_init_once);

in place for a while.

> but, your patch seems
> much cleaner to me.

It has the downside that we'll need to reinitialise all those
list_heads on each inode allocation, whereas currently that only
happens at slab-page-allocation time.  Trade that off against all the
open-coded zeroings which got removed then it's probably a wash from a
performance POV.

Or not.  A memset followed by a sprinkle of random writes might be
faster than no-memset followed by a sprinkle of random writes.  Or not ;)



      reply	other threads:[~2008-08-14 19:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 18:13 [PATCH] Properly init address_space->writeback_index Chris Mason
2008-08-14 19:05 ` Andrew Morton
2008-08-14 19:35   ` Chris Mason
2008-08-14 19:55     ` Andrew Morton [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=20080814125510.8a2d1faf.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=chris.mason@oracle.com \
    --cc=linux-fsdevel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.