From: David Woodhouse <dwmw2@infradead.org>
To: Miguel Blanco <mblancom@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: problem mounting a jffs2 filesystem
Date: Mon, 06 Mar 2006 13:35:31 +0000 [thread overview]
Message-ID: <1141652131.4110.47.camel@pmac.infradead.org> (raw)
In-Reply-To: <8766c4ce0603050504h24b445c5t@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
On Sun, 2006-03-05 at 14:04 +0100, Miguel Blanco wrote:
> divide error: 0000 [#1]
> EIP is at jffs2_scan_medium+0xdf/0x55e [jffs2]
Can you try it with the attached patch? Or turn off
CONFIG_JFFS2_FS_WRITEBUFFER
--
dwmw2
[-- Attachment #2: Attached message - mtd/fs/jffs2 scan.c,1.134,1.135 --]
[-- Type: message/rfc822, Size: 3388 bytes --]
From: David Woodhouse <dwmw2@infradead.org>
To: linux-mtd-cvs@lists.infradead.org
Subject: mtd/fs/jffs2 scan.c,1.134,1.135
Date: Thu, 09 Feb 2006 16:13:01 +0000
Message-ID: <E1F7EPl-0007Vk-PT@phoenix.infradead.org>
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv28853
Modified Files:
scan.c
Log Message:
Avoid divide-by-zero
Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -r1.134 -r1.135
--- scan.c 13 Jan 2006 10:25:29 -0000 1.134
+++ scan.c 9 Feb 2006 16:12:59 -0000 1.135
@@ -239,7 +239,7 @@
c->nextblock->dirty_size = 0;
}
#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
- if (!jffs2_can_mark_obsolete(c) && c->nextblock && (c->nextblock->free_size % c->wbuf_pagesize)) {
+ if (!jffs2_can_mark_obsolete(c) && c->wbuf_pagesize && c->nextblock && (c->nextblock->free_size % c->wbuf_pagesize)) {
/* If we're going to start writing into a block which already
contains data, and the end of the data isn't page-aligned,
skip a little and align it. */
__________________________________________________________
Linux-MTD CVS commit list
http://lists.infradead.org/mailman/listinfo/linux-mtd-cvs/
next prev parent reply other threads:[~2006-03-06 13:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 13:04 Miguel Blanco
2006-03-06 13:28 ` Josh Boyer
2006-03-06 13:35 ` David Woodhouse [this message]
2006-03-07 1:15 ` Miguel Blanco
2006-03-08 22:07 ` Adrian Bunk
2006-03-09 2:18 ` Josh Boyer
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=1141652131.4110.47.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mblancom@gmail.com \
/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®