* Rational for JFFS2 deletion dirent ?
@ 2001-12-03 19:58 Jean-Marc Saffroy
2001-12-03 20:05 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Marc Saffroy @ 2001-12-03 19:58 UTC (permalink / raw)
To: linux-mtd
Hi all,
I'm currently looking at the JFFS2 code, and I was wondering why the
unlink operation creates a deletion dirent. Isn't it sufficient to mark
the old dirent as obsolete ?
BTW, I can't find where deletion dirents are actually removed, except when
their parent directory is removed or their erasure block is garbage
collected, have I missed other places ?
TIA.
Regards,
--
Jean-Marc Saffroy - Research Engineer - Silicomp Research Institute
mailto:saffroy@ri.silicomp.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Rational for JFFS2 deletion dirent ?
2001-12-03 19:58 Rational for JFFS2 deletion dirent ? Jean-Marc Saffroy
@ 2001-12-03 20:05 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-12-03 20:05 UTC (permalink / raw)
To: Jean-Marc Saffroy; +Cc: linux-mtd
saffroy@ri.silicomp.fr said:
> I'm currently looking at the JFFS2 code, and I was wondering why the
> unlink operation creates a deletion dirent. Isn't it sufficient to
> mark the old dirent as obsolete ?
On NAND flash you can't do that.
> BTW, I can't find where deletion dirents are actually removed, except
> when their parent directory is removed or their erasure block is
> garbage collected, have I missed other places ?
Nope, they should only be removed when their erase block is garbage
collected, if there's no longer any requirement for them.
Actually, now I come to mention it I'm not convinced I actually did that bit
right - they may be removed unconditionally on GC, and to make NAND flash
work right we'll need to remove them only if they're no longer required
(because all previous dirent nodes which they obsolete are already GC'd).
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-03 19:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 19:58 Rational for JFFS2 deletion dirent ? Jean-Marc Saffroy
2001-12-03 20:05 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox