From: Andrew Morton <akpm@osdl.org>
To: Jan Kara <jack@suse.cz>
Cc: Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org
Subject: Re: 2.6.15-mm3 - disk quotas apparently busticated..
Date: Sat, 14 Jan 2006 13:44:14 -0800 [thread overview]
Message-ID: <20060114134414.73c6705b.akpm@osdl.org> (raw)
In-Reply-To: <20060114211933.GC21901@atrey.karlin.mff.cuni.cz>
Jan Kara <jack@suse.cz> wrote:
>
> > + } else {
> > + *errp = 0;
> > }
> > return bh;
> > }
> > err:
> > return NULL;
> > }
> Yup, that patch seems to be correct. I'm not sure if Andrew has picked
> up the patch as it is missing Signed-off-by and also directory of the
> file being patched (see Documentation/SubmittingPatches for general
> guidelines). So if Andrew has not responded yet, regenerate the patch
> and send it to him please. Thanks for the fix.
We ended up with this:
--- devel/fs/ext3/inode.c~ext3-get-blocks-maping-multiple-blocks-at-a-once-ext3_getblk-fix 2006-01-13 12:34:37.000000000 -0800
+++ devel-akpm/fs/ext3/inode.c 2006-01-13 12:35:39.000000000 -0800
@@ -899,8 +899,16 @@ struct buffer_head *ext3_getblk(handle_t
dummy.b_state = 0;
dummy.b_blocknr = -1000;
buffer_trace_init(&dummy.b_history);
- *errp = ext3_get_blocks_handle(handle, inode, block, 1, &dummy, create, 1);
- if ((*errp == 1 ) && buffer_mapped(&dummy)) {
+ err = ext3_get_blocks_handle(handle, inode, block, 1,
+ &dummy, create, 1);
+ if (err == 1) {
+ err = 0;
+ } else if (err >= 0) {
+ WARN_ON(1);
+ err = -EIO;
+ }
+ *errp = err;
+ if (!err && buffer_mapped(&dummy)) {
struct buffer_head *bh;
bh = sb_getblk(inode->i_sb, dummy.b_blocknr);
if (!bh) {
_
prev parent reply other threads:[~2006-01-14 21:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-12 21:16 Valdis.Kletnieks
2006-01-14 21:19 ` Jan Kara
2006-01-14 21:44 ` Andrew Morton [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=20060114134414.73c6705b.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=jack@suse.cz \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®