From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Zheng Lv <lv.zheng.2015@gmail.com>,
linux-fsdevel@vger.kernel.org, trivial@kernel.org
Subject: Re: [PATCH] fat: fix error message for bogus number of directory entries
Date: Fri, 24 Jun 2016 18:03:53 +0900 [thread overview]
Message-ID: <877fdfm006.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <1466746260-11721-1-git-send-email-lv.zheng.2015@gmail.com> (Zheng Lv's message of "Fri, 24 Jun 2016 01:31:00 -0400")
Zheng Lv <lv.zheng.2015@gmail.com> writes:
> "bogus directory-entries per block" was reported for what was instead
> bogus number of directory entries. The message also mismatched the
> argument passed to printk(), which was sbi->dir_entries.
>
> Fix this by replacing the message with "bogus number of directory
> entries". printk() argument was kept unchanged.
>
> Signed-off-by: Zheng Lv <lv.zheng.2015@gmail.com>
> Cc: trivial@kernel.org
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> ---
> Note that this patch would possibly confuse users who receive the error message from an old kernel but grep in the patched source tree. However, I think this case is rare enough to be ignored.
>
>
> fs/fat/inode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/fat/inode.c b/fs/fat/inode.c
> index 3bcf579..d26a5ce 100644
> --- a/fs/fat/inode.c
> +++ b/fs/fat/inode.c
> @@ -1726,7 +1726,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
> sbi->dir_entries = bpb.fat_dir_entries;
> if (sbi->dir_entries & (sbi->dir_per_block - 1)) {
> if (!silent)
> - fat_msg(sb, KERN_ERR, "bogus directory-entries per block"
> + fat_msg(sb, KERN_ERR, "bogus number of directory entries"
> " (%u)", sbi->dir_entries);
> goto out_invalid;
> }
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
prev parent reply other threads:[~2016-06-24 9:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 5:31 [PATCH] fat: fix error message for bogus number of directory entries Zheng Lv
2016-06-24 9:03 ` OGAWA Hirofumi [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=877fdfm006.fsf@mail.parknet.co.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=lv.zheng.2015@gmail.com \
--cc=trivial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.