Re: [PATCH 2/2] Use feature code to eliminate quota pointers frominodes for filesystems that don't need it.
From: Ryusuke Konishi
Date: Fri May 01 2009 - 23:32:37 EST
On Thu, 30 Apr 2009 19:31:18 +0200, Jan Kara wrote:
> Signed-off-by: Jan Kara <jack@xxxxxxx>
> ---
> fs/ext2/ext2.h | 1 +
> fs/ext2/super.c | 5 ++
> fs/inode.c | 7 ++-
> fs/nilfs2/mdt.c | 3 -
> fs/quota/dquot.c | 134 ++++++++++++++++++++++++++++++----------------------
> include/linux/fs.h | 10 +++-
> 6 files changed, 97 insertions(+), 63 deletions(-)
<snip>
> diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c
> index 47dd815..725cd80 100644
> --- a/fs/nilfs2/mdt.c
> +++ b/fs/nilfs2/mdt.c
> @@ -478,9 +478,6 @@ nilfs_mdt_new_common(struct the_nilfs *nilfs, struct super_block *sb,
> inode->i_blocks = 0;
> inode->i_bytes = 0;
> inode->i_generation = 0;
> -#ifdef CONFIG_QUOTA
> - memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
> -#endif
> inode->i_pipe = NULL;
> inode->i_bdev = NULL;
> inode->i_cdev = NULL;
Ack-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx>
<snip>
Thanks,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/