From: Theodore Tso <tytso@mit.edu>
To: linux-ext4@vger.kernel.org
Cc: Mingming Cao <cmm@us.ibm.com>
Subject: Re: JBD2/ext4 error
Date: Sun, 2 Nov 2008 22:39:20 -0500 [thread overview]
Message-ID: <20081103033920.GC29102@mit.edu> (raw)
In-Reply-To: <20081103004827.GA2766@nineveh.local>
On Sun, Nov 02, 2008 at 07:48:27PM -0500, Joseph Fannin wrote:
> Hi,
>
> I'm hitting what's probably a bug in ext4 on one of my boxes. It
> always happens on the boot partition, which is extentless, since it
> seems likely GRUB will choke on extents.
Yeah, this looks like a 2.6.27 regression, introduced by commit a02908f1.
Mingming, can you check this: I think in the function (in fs/ext4/inode.c):
static int ext4_index_trans_blocks(struct inode *inode, int nrblocks, int chunk)
{
if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL))
return ext4_indirect_trans_blocks(inode, nrblocks, 0);
return ext4_ext_index_trans_blocks(inode, nrblocks, 0);
}
... the last argument to ext4_indirect_trans_blocks and
ext4_ext_index_trans_blocks should be chunk, not 0.
As result of this bug, we are massively overestimately the amount of
credits needed in the non-extent case, and with small journals, this
causes a failure.
We probably should do more testing with minimally sized journals to
make sure there aren't other problems which only show up with small
journals.
- Ted
next prev parent reply other threads:[~2008-11-03 3:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 0:48 JBD2/ext4 error Joseph Fannin
2008-11-03 3:39 ` Theodore Tso [this message]
2008-11-06 19:51 ` [PATCH] ext4: calculate journal credits correctly Theodore Ts'o
2008-11-13 0:03 ` Mingming Cao
2008-11-23 14:32 ` Aneesh Kumar K.V
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=20081103033920.GC29102@mit.edu \
--to=tytso@mit.edu \
--cc=cmm@us.ibm.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 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.