From: Linus Torvalds <torvalds@osdl.org>
To: Andries Brouwer <Andries.Brouwer@cwi.nl>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] avoid semi-infinite loop when mounting bad ext2
Date: Wed, 3 Nov 2004 16:10:31 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0411031608380.2187@ppc970.osdl.org> (raw)
In-Reply-To: <20041103232744.GA10325@apps.cwi.nl>
On Thu, 4 Nov 2004, Andries Brouwer wrote:
>
> [no doubt a similar patch is appropriate for ext3]
ext3 is different here, and uses the old-style buffer cache rather than
page cache. It has the equivalent case for a hole and/or IO error, and
like ext2, it just continues with the next block.
I _think_ that case should be updated to do the same thing you did for
ext2, but I'll leave it up to Andrew, since he is the ext3 master anyway.
Andrew?
Linus
> diff -uprN -X /linux/dontdiff a/fs/ext2/dir.c b/fs/ext2/dir.c
> --- a/fs/ext2/dir.c 2004-10-30 21:44:02.000000000 +0200
> +++ b/fs/ext2/dir.c 2004-11-04 00:14:14.000000000 +0100
> @@ -275,7 +275,8 @@ ext2_readdir (struct file * filp, void *
> "bad page in #%lu",
> inode->i_ino);
> filp->f_pos += PAGE_CACHE_SIZE - offset;
> - continue;
> + ret = -EIO;
> + goto done;
> }
> kaddr = page_address(page);
> if (need_revalidate) {
>
prev parent reply other threads:[~2004-11-04 0:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 23:27 Andries Brouwer
2004-11-04 0:10 ` Linus Torvalds [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=Pine.LNX.4.58.0411031608380.2187@ppc970.osdl.org \
--to=torvalds@osdl.org \
--cc=Andries.Brouwer@cwi.nl \
--cc=akpm@osdl.org \
--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®