From: Theodore Tso <tytso@mit.edu>
To: Jan Kara <jack@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>,
Christoph Hellwig <hch@infradead.org>
Subject: Re: [RFC PATCH 0/2] A new way of attaching information to inodes
Date: Thu, 30 Apr 2009 15:43:39 -0400 [thread overview]
Message-ID: <20090430194339.GE19276@mit.edu> (raw)
In-Reply-To: <1241112678-6615-1-git-send-email-jack@suse.cz>
On Thu, Apr 30, 2009 at 07:31:16PM +0200, Jan Kara wrote:
>
> currently our VFS inode structure is quite big. It contains quite some
> members that are useful only in some cases (e.g. device pointers and list head
> used only when the inode represents a block/character device, quota pointers
> used only when the filesystem actually supports quota, etc.). And it would
> be helpful to add some more so that we can handle ACL's in generic code, or
> we can do some kind of block reservation for mmaped writes, and there are
> other cases.
One of the things on my "round tuit" list was separating out those
inode fields which are only needed when the inode is in use, and
separating them out into a separate data structure, so that the 90+%
of the inodes which are just being cached, and are not active, don't
burn space in struct inode. In particular, we can probably move out
i_mutex, i_alloc_sem, i_size_seqcount, i_flock, and perhaps others.
The same applies for the filesystem-specific portion of the in-core
inode; and for some filesystems there might be even more opportunity
for savings there.
Just a thought,
- Ted
next prev parent reply other threads:[~2009-04-30 19:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 17:31 [RFC PATCH 0/2] A new way of attaching information to inodes Jan Kara
2009-04-30 17:31 ` [PATCH 1/2] Implement trivial struct feature macros Jan Kara
2009-05-01 9:14 ` Christoph Hellwig
2009-04-30 17:31 ` [PATCH 2/2] Use feature code to eliminate quota pointers from inodes for filesystems that don't need it Jan Kara
2009-05-02 3:23 ` Ryusuke Konishi
2009-04-30 19:43 ` Theodore Tso [this message]
2009-05-01 9:08 ` [RFC PATCH 0/2] A new way of attaching information to inodes Christoph Hellwig
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=20090430194339.GE19276@mit.edu \
--to=tytso@mit.edu \
--cc=hch@infradead.org \
--cc=jack@suse.cz \
--cc=linux-kernel@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