From: David Woodhouse <dwmw2@infradead.org>
To: olivier.eribon@free.fr
Cc: linux-mtd@lists.infradead.org, tglx@linutronix.de
Subject: Re: Cannot remove child on JFFS2 FS with latest CVS
Date: Wed, 28 Aug 2002 15:31:23 +0100 [thread overview]
Message-ID: <14081.1030545083@redhat.com> (raw)
In-Reply-To: <1030544853.3d6cddd5501b2@imp.free.fr>
olivier.eribon@free.fr said:
> Now with latest CVS Aug 28 2002, and 2.4.17 linux kernel on a
> specific board (ppc405gp with a nand flash : Toshiba TC58256FT/DC),
> I have always the same message :
> Cannot remove child "fileXXX", ino #0, because it doesn't exist
You don't have the latest code. Check the $Id$ tag in fs/jffs2/build.c.
* $Id: build.c,v 1.38 2002/08/23 12:21:36 dwmw2 Exp $
Note the check of fd->ino which was added the first time this was reported:
while(ic->scan->dents) {
struct jffs2_inode_cache *child_ic;
fd = ic->scan->dents;
ic->scan->dents = fd->next;
if (!fd->ino) {
/* It's a deletion dirent. Ignore it */
D1(printk(KERN_DEBUG "Child \"%s\" is a deletion dirent, skipping...\n", fd->name));
jffs2_free_full_dirent(fd);
continue;
}
if (!whinged) {
whinged = 1;
printk(KERN_NOTICE "Inode #%u was a directory with children - removing those too...\n", ic->ino);
}
D1(printk(KERN_DEBUG "Removing child \"%s\", ino #%u\n",
fd->name, fd->ino));
child_ic = jffs2_get_ino_cache(c, fd->ino);
if (!child_ic) {
printk(KERN_NOTICE "Cannot remove child \"%s\", ino #%u, because it doesn't exist\n", fd->name, fd->ino);
jffs2_free_full_dirent(fd);
continue;
}
jffs2_free_full_dirent(fd);
child_ic->nlink--;
}
--
dwmw2
prev parent reply other threads:[~2002-08-28 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-28 14:27 Cannot remove child on JFFS2 FS with latest CVS olivier.eribon
2002-08-28 14:31 ` David Woodhouse [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=14081.1030545083@redhat.com \
--to=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=olivier.eribon@free.fr \
--cc=tglx@linutronix.de \
/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