public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Bernhard Priewasser <priewasser@gmail.com>
To: "Artem B. Bityutskiy" <dedekind@yandex.ru>
Cc: MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: GC operation
Date: Wed, 09 Nov 2005 18:35:23 +0100	[thread overview]
Message-ID: <4372335B.8010709@gmail.com> (raw)
In-Reply-To: <43720C0C.2040905@yandex.ru>

> Not almost full partition. Here are some statements:
> 
> 1. GC starts if there are no *free eraseblocks*.
> 2. GC makes free space in units of an eraseblock.
> 3. No GC is needed on mount.
> 
> JFFS2 does *checking* on mount, i.e., checks all CRCs. It is done in the 
> context of the GC thread, but does not actually relate to the Garbage 
> Collection. This is just how it is implemented.
Blocking time is rather important for us, e.g. the GC and erase_pending 
stuff is too. Thank you for bringing some light into it, perhaps it 
wouldn't be bad if there was some documentation. I'm doing my Master's 
Thesis right now on JFFS2, that might be a good documention.

> jffs2_write_super() is called when the JFFS2 superblock is dirty 
> (JFFS2's sb->s_dirt is set). JFFS2 marks its "struct superblock" 
> structure as dirty when something is added to the erase_pending_list or 
> written to the wbuf.
> 
> When sb->s_dirt, kupdated will call jffs2_write_super() in some 
> configurable time and JFFS2 will erase pending eraseblocks and flush the 
> wbuf.
If anybody else is intersted: See 
http://lists.infradead.org/pipermail/linux-mtd/2005-November/014271.html
and follow-up.

-- 
Bernhard

      reply	other threads:[~2005-11-09 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 16:22 GC operation Bernhard Priewasser
2005-11-03 16:33 ` Artem B. Bityutskiy
2005-11-07 12:47   ` Bernhard Priewasser
2005-11-08 14:31     ` Artem B. Bityutskiy
2005-11-09 13:23       ` Bernhard Priewasser
2005-11-09 13:41         ` Josh Boyer
2005-11-09 14:47         ` Artem B. Bityutskiy
2005-11-09 17:35           ` Bernhard Priewasser [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=4372335B.8010709@gmail.com \
    --to=priewasser@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox