public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Jean-Marc Saffroy <saffroy@ri.silicomp.fr>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Rational for JFFS2 deletion dirent ?
Date: Mon, 03 Dec 2001 20:05:01 +0000	[thread overview]
Message-ID: <31275.1007409901@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.31.0112032043040.22767-100000@sisley.ri.silicomp.fr>

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

      reply	other threads:[~2001-12-03 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-03 19:58 Rational for JFFS2 deletion dirent ? Jean-Marc Saffroy
2001-12-03 20:05 ` 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=31275.1007409901@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=saffroy@ri.silicomp.fr \
    /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