From: Theodore Ts'o <tytso@mit.edu>
To: "Lukáš Czerner" <lczerner@redhat.com>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH -v2] ext4: rearrange initialization to fix EXT4FS_DEBUG
Date: Mon, 14 Jul 2014 07:56:23 -0400 [thread overview]
Message-ID: <20140714115623.GC8935@thunk.org> (raw)
In-Reply-To: <alpine.LFD.2.00.1407140959450.13527@localhost.localdomain>
On Mon, Jul 14, 2014 at 10:04:47AM +0200, Lukáš Czerner wrote:
> > + block = ext4_count_free_clusters(sb);
> > + ext4_free_blocks_count_set(sbi->s_es, block);
>
>
> This does not seem right. block is in cluster units so we need to
> convert.
>
> ext4_free_blocks_count_set(sbi->s_es, EXT4_C2B(sbi, blocks));
>
> Otherwise it looks good to me.
Thanks, for catching this! II've fixed up the patch on the ext4 git tree.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-07-14 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-12 16:10 [PATCH -v2] ext4: rearrange initialization to fix EXT4FS_DEBUG Theodore Ts'o
2014-07-14 8:04 ` Lukáš Czerner
2014-07-14 11:56 ` Theodore Ts'o [this message]
2014-07-14 12:09 ` Lukáš Czerner
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=20140714115623.GC8935@thunk.org \
--to=tytso@mit.edu \
--cc=lczerner@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).