linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Andreas Dilger <aedilger@gmail.com>
Cc: Jeff Moyer <jmoyer@redhat.com>,
	Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: An idea for supporting large directories and readdir+stat workloads
Date: Mon, 13 Aug 2012 10:39:41 -0400	[thread overview]
Message-ID: <20120813143941.GC32484@thunk.org> (raw)
In-Reply-To: <20120813143607.GB32484@thunk.org>

On Mon, Aug 13, 2012 at 10:36:07AM -0400, Theodore Ts'o wrote:
> Field		Size
> 
> ino		 4

Silly me, we don't need actually need to store the inode a second
time, since that's already in the struct ext4_dir_entry.

> dev		 4

... and we only need to store the device if this is a block or
character device, so we could actually use the i_size field below to
store the dev_t for devices inodes.

So this would shrink the size of the "compact inode" that would be
stored in the directory entry down from 62 bytes to 58 bytes.

						- Ted

      reply	other threads:[~2012-08-13 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11 21:25 An idea for supporting large directories and readdir+stat workloads Ted Ts'o
2012-08-13  5:11 ` Andreas Dilger
2012-08-13 14:36   ` Theodore Ts'o
2012-08-13 14:39     ` Theodore Ts'o [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=20120813143941.GC32484@thunk.org \
    --to=tytso@mit.edu \
    --cc=aedilger@gmail.com \
    --cc=jmoyer@redhat.com \
    --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).