From: Ladislav Michl <ladis@linux-mips.org>
To: "Artem B. Bityutskiy" <dedekind@yandex.ru>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2 BUG() on mount
Date: Mon, 10 Apr 2006 11:09:11 +0200 [thread overview]
Message-ID: <20060410090911.GA4987@orphique> (raw)
In-Reply-To: <44322186.3060800@yandex.ru>
On Tue, Apr 04, 2006 at 11:34:30AM +0400, Artem B. Bityutskiy wrote:
> Actually, there is a jffs2_build_filesystem() function which walks all
> inodes with nlink == 0 and pretends to dispense with them. I believe
> that function is the right place to fix. I ganced at it, and it appeared
> to be thet it calls jffs2_mark_node_obsolete() for all nodes of this
> inode. jffs2_mark_node_obsolete() is a huge and fearsom monster-function
> which may do something wrong.
Problem appeared to be GC thread waiting for inode being read. On next run
this inode was incorrectly skipped before jffs2_do_read_inode_internal
marked it obsolete. Bug was fixed by decrementing c->checked_ino before
jffs2_garbage_collect_pass returns (for INO_STATE_READING) so on next GC
run it is checked again.
Many thanks to David Woodhouse and Artem B. Bityuckiy for help with
debugging.
Best regards,
ladis
prev parent reply other threads:[~2006-04-10 9:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-22 11:54 jffs2 Oops on mount Ladislav Michl
2006-03-22 19:49 ` Ladislav Michl
2006-03-23 18:25 ` jffs2 BUG() " Ladislav Michl
2006-04-03 15:49 ` Ladislav Michl
2006-04-04 7:34 ` Artem B. Bityutskiy
2006-04-10 9:09 ` Ladislav Michl [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=20060410090911.GA4987@orphique \
--to=ladis@linux-mips.org \
--cc=dedekind@yandex.ru \
--cc=linux-mtd@lists.infradead.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.