All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@kernel.dk>
To: Ryusuke Konishi <ryusuke@osrg.net>
Cc: npiggin@kernel.dk, konishi.ryusuke@lab.ntt.co.jp,
	linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk,
	linux-nilfs@vger.kernel.org
Subject: Re: [PATCH 0/6] nilfs2: remove own inode hash table
Date: Tue, 24 Aug 2010 22:58:58 +1000	[thread overview]
Message-ID: <20100824125858.GA8072@amd> (raw)
In-Reply-To: <20100824.211931.233007881.ryusuke@osrg.net>

On Tue, Aug 24, 2010 at 09:19:31PM +0900, Ryusuke Konishi wrote:
> On Tue, 24 Aug 2010 17:48:44 +1000, Nick Piggin <npiggin@kernel.dk> wrote:
> > On Sun, Aug 22, 2010 at 07:05:00PM +0900, Ryusuke Konishi wrote:
> > > This is a patchset to remove own inode hash table from nilfs.
> > > 
> > > The current version of nilfs uses inode not only to manage regular
> > > files, directories, symlinks but also for some types of metadata and
> > > for caching file blocks relocated by GC.
> > > 
> > > The last type of inodes is called gc-inodes, and nilfs keeps them with
> > > an own hash table.
> > > 
> > > With this patchset, the gc-inodes will be stored in vfs inode cache
> > > like regular inodes, and the own inode hash is deleted.
> > > 
> > > I hope this would be helpful for the vfs scalability work.
> > 
> > This looks like a reasonable direction to me, and you would get
> > more of the benefits of the inode cache scalability work, but this
> > wasn't the biggest prolem for my series, because I'm not going digging
> > into the filesystems themselves.
> > 
> > The reason I broke nilfs2 is because it duplicates a lot of the
> > generic inode initialisation code. This really should go in core
> > code because nilfs2 does not own the generic inode fields.
> 
> Yes, that is what I want to do next.
> I really want to eliminate the duplication.
> 
> > It just needs some helper function to do the non-sb related init
> > stuff for you.
> 
> I'm seeking the way to make that special type of inodes hold a valid
> sb.  If it's not feasible, I think nilfs should not borrow inode
> object and should define just enough structure instead.

Like Christoph said, inode fundamentally has a sb, so a different
data structure would make sense. You really shouldn't be using vfs
for sb-less inodes, so therefore you should be able to use your
own type for this.

But for vfs scale, that doesn't seem to be a problem, the problem
for me is just where it duplicates inode init stuff.


  reply	other threads:[~2010-08-24 12:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-22 10:05 [PATCH 0/6] nilfs2: remove own inode hash table Ryusuke Konishi
2010-08-22 10:05 ` [PATCH 3/6] nilfs2: keep zero value in i_cno except for gc-inodes Ryusuke Konishi
2010-08-22 10:05 ` [PATCH 5/6] nilfs2: separate initializer of metadata file inode Ryusuke Konishi
     [not found] ` <1282471506-29618-1-git-send-email-konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2010-08-22 10:05   ` [PATCH 1/6] nilfs2: allow nilfs_destroy_inode to destroy metadata file inodes Ryusuke Konishi
2010-08-22 10:05   ` [PATCH 2/6] nilfs2: allow nilfs_dirty_inode to mark metadata file inodes dirty Ryusuke Konishi
2010-08-22 10:05   ` [PATCH 4/6] nilfs2: use iget5_locked to get inode Ryusuke Konishi
2010-08-22 10:05   ` [PATCH 6/6] nilfs2: remove own inode hash used for GC Ryusuke Konishi
2010-08-24  7:48 ` [PATCH 0/6] nilfs2: remove own inode hash table Nick Piggin
2010-08-24  8:30   ` Christoph Hellwig
     [not found]     ` <20100824083027.GA27594-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2010-08-24 12:58       ` Ryusuke Konishi
     [not found]         ` <20100824.215823.121933465.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-08-24 15:32           ` Christoph Hellwig
     [not found]             ` <20100824153214.GA25897-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2010-08-24 16:20               ` Ryusuke Konishi
     [not found]                 ` <20100825.012012.179486471.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-08-24 16:42                   ` Al Viro
2010-08-24 17:00                     ` Ryusuke Konishi
2010-08-24 12:19   ` Ryusuke Konishi
2010-08-24 12:58     ` Nick Piggin [this message]
2010-08-24 13:24     ` Al Viro
     [not found]       ` <20100824132453.GU31363-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
2010-08-24 15:39         ` Ryusuke Konishi

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=20100824125858.GA8072@amd \
    --to=npiggin@kernel.dk \
    --cc=konishi.ryusuke@lab.ntt.co.jp \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nilfs@vger.kernel.org \
    --cc=ryusuke@osrg.net \
    --cc=viro@zeniv.linux.org.uk \
    /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.