From: Mingming Cao <cmm@us.ibm.com>
To: Indan Zupancic <indan@nul.nu>
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Shrink ext3_inode_info by 8 bytes for !POSIX_ACL.
Date: Fri, 18 Jan 2008 11:16:09 -0800 [thread overview]
Message-ID: <1200683769.7261.5.camel@localhost.localdomain> (raw)
In-Reply-To: <1200170142-1151-1-git-send-email-indan@nul.nu>
On Sat, 2008-01-12 at 21:35 +0100, Indan Zupancic wrote:
> i_file_acl and i_dir_acl aren't always needed.
>
> With certain configs this makes 10 ext3_inode_cache objects fit in
> one slab instead of the current 9, as the size shrinks from 416 to
> 408 bytes for 32 bit, !POSIX_ACL and !EXT3_FS_XATTR configs.
>
> Signed-off-by: Indan Zupancic <indan@nul.nu>
> ---
> fs/ext3/ialloc.c | 2 ++
> fs/ext3/inode.c | 29 +++++++++++++++++++----------
> include/linux/ext3_fs_i.h | 2 ++
> 3 files changed, 23 insertions(+), 10 deletions(-)
>
> diff --git a/fs/ext3/ialloc.c b/fs/ext3/ialloc.c
> index 1bc8cd8..01745bc 100644
> --- a/fs/ext3/ialloc.c
> +++ b/fs/ext3/ialloc.c
> @@ -574,8 +574,10 @@ got:
> ei->i_frag_no = 0;
> ei->i_frag_size = 0;
> #endif
> +#ifdef CONFIG_EXT3_FS_POSIX_ACL
> ei->i_file_acl = 0;
> ei->i_dir_acl = 0;
> +#endif
For regular file, i_dir_acl is being reused as i_size_high to support
large file.
Mingming
next prev parent reply other threads:[~2008-01-18 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 20:35 [PATCH] Shrink ext3_inode_info by 8 bytes for !POSIX_ACL Indan Zupancic
2008-01-18 19:16 ` Mingming Cao [this message]
2008-01-18 23:51 ` Indan Zupancic
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=1200683769.7261.5.camel@localhost.localdomain \
--to=cmm@us.ibm.com \
--cc=indan@nul.nu \
--cc=linux-ext4@vger.kernel.org \
--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