From: Jan Kara <jack@suse.cz>
To: Liu Xiang <liu.xiang6@zte.com.cn>
Cc: linux-ext4@vger.kernel.org, jack@suse.com,
linux-kernel@vger.kernel.org, liuxiang_1999@126.com
Subject: Re: [PATCH] ext2: Remove redundant check on s_inode_size
Date: Tue, 22 Jan 2019 11:38:43 +0100 [thread overview]
Message-ID: <20190122103843.GC13149@quack2.suse.cz> (raw)
In-Reply-To: <1547561443-3411-1-git-send-email-liu.xiang6@zte.com.cn>
On Tue 15-01-19 22:10:43, Liu Xiang wrote:
> The case of (EXT2_INODE_SIZE(sb) == 0) is included in
> (sbi->s_inode_size < EXT2_GOOD_OLD_INODE_SIZE).
> So there is no need to check again.
>
> Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Thanks for the cleanup. I have added it to my tree.
Honza
> ---
> fs/ext2/super.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/fs/ext2/super.c b/fs/ext2/super.c
> index 73b2d52..c71c2e3 100644
> --- a/fs/ext2/super.c
> +++ b/fs/ext2/super.c
> @@ -1024,8 +1024,6 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
> sbi->s_frags_per_group = le32_to_cpu(es->s_frags_per_group);
> sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group);
>
> - if (EXT2_INODE_SIZE(sb) == 0)
> - goto cantfind_ext2;
> sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb);
> if (sbi->s_inodes_per_block == 0 || sbi->s_inodes_per_group == 0)
> goto cantfind_ext2;
> --
> 1.9.1
>
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
prev parent reply other threads:[~2019-01-22 10:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-15 14:10 Liu Xiang
2019-01-22 10:38 ` Jan Kara [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=20190122103843.GC13149@quack2.suse.cz \
--to=jack@suse.cz \
--cc=jack@suse.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liu.xiang6@zte.com.cn \
--cc=liuxiang_1999@126.com \
/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
all inboxes | Powered by JetHome®