public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: johan.adolfsson@axis.com
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>,
	"David Woodhouse" <dwmw2@infradead.org>
Cc: <joakim.tjernlund@lumentis.se>,
	"Herman Oosthuysen" <Herman@wirelessnetworksinc.com>,
	<linux-mtd@lists.infradead.org>
Subject: Re: JFFS2 Config / FAQ
Date: Mon, 25 Nov 2002 21:20:17 +0100	[thread overview]
Message-ID: <058201c294c0$11de2cc0$a3b270d5@homeip.net> (raw)
In-Reply-To: 20021125183858.GA26478@wohnheim.fh-wedel.de

----- Original Message -----
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "David Woodhouse" <dwmw2@infradead.org>
Cc: <joakim.tjernlund@lumentis.se>; "Herman Oosthuysen"
<Herman@wirelessnetworksinc.com>; <linux-mtd@lists.infradead.org>
Sent: den 25 november 2002 19:38
Subject: Re: JFFS2 Config / FAQ


> On Mon, 25 November 2002 16:19:53 +0000, David Woodhouse wrote:
> > joakim.tjernlund@lumentis.se said:
> > >  I think it's 5 blocks currently. It should be possible to lower that
> > > count, but that needs testing.
> >
> > It was tested. It broke. http://mhonarc.axis.se/jffs-dev/msg01495.html
>
> Yes, it broke with a smaller number. But wether that smaller number
> was 4, 1 or 0 is unknown.
>
> I would expect 3 or 4 to be fine, but not bet more than a beer on it.
>
> Jörn

We applied the following patch to test:
--- os/linux/fs/jffs2/nodelist.h        23 Apr 2002 13:18:37 -0000
1.1.1.3
+++ os/linux/fs/jffs2/nodelist.h        12 Jul 2002 10:11:57 -0000
@@ -223,10 +223,10 @@
 #define ALLOC_DELETION 1       /* Deletion node. Best to allow it */
 #define ALLOC_GC       2       /* Space requested for GC. Give it or die */

-#define JFFS2_RESERVED_BLOCKS_BASE 3
/* Number
 of free blocks there must be before we... */
-#define JFFS2_RESERVED_BLOCKS_WRITE (JFFS2_RESERVED_BLOCKS_BASE + 2)
/* ... al
low a normal filesystem write */
+#define JFFS2_RESERVED_BLOCKS_BASE 0
/* Number
 of free blocks there must be before we... */
+#define JFFS2_RESERVED_BLOCKS_WRITE (JFFS2_RESERVED_BLOCKS_BASE + 1)
/* ... al
low a normal filesystem write */
 #define JFFS2_RESERVED_BLOCKS_DELETION (JFFS2_RESERVED_BLOCKS_BASE + 1)
/
* ... allow a normal filesystem deletion */
-#define JFFS2_RESERVED_BLOCKS_GCTRIGGER (JFFS2_RESERVED_BLOCKS_BASE + 3)
/* ... wa
ke up the GC thread */
+#define JFFS2_RESERVED_BLOCKS_GCTRIGGER (JFFS2_RESERVED_BLOCKS_BASE + 1)
/* ... wa
ke up the GC thread */
 #define JFFS2_RESERVED_BLOCKS_GCBAD (JFFS2_RESERVED_BLOCKS_BASE + 1)
/* ... pi
ck a block from the bad_list to GC */
 #define JFFS2_RESERVED_BLOCKS_GCMERGE (JFFS2_RESERVED_BLOCKS_BASE)
/* ... me
rge pages when garbage collecting */

Our JFFS2 partition was only 5x64kB (2MB flash total, kernel+cramfs the
rest)

/Johan

      parent reply	other threads:[~2002-11-25 19:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17  6:32 JFFS2 basic question xuli
2002-10-17 10:43 ` Wolfgang Denk
2002-10-17 20:46   ` Xiaogeng (Shawn) Jin
2002-10-17 21:17     ` Xiaogeng (Shawn) Jin
2002-11-25 16:06 ` JFFS2 Config / FAQ Herman Oosthuysen
2002-11-25 16:08   ` David Woodhouse
2002-11-25 16:15   ` Joakim Tjernlund
2002-11-25 16:19     ` David Woodhouse
2002-11-25 18:38       ` Jörn Engel
2002-11-25 19:32         ` Thomas Gleixner
2002-11-25 20:20         ` johan.adolfsson [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='058201c294c0$11de2cc0$a3b270d5@homeip.net' \
    --to=johan.adolfsson@axis.com \
    --cc=Herman@wirelessnetworksinc.com \
    --cc=dwmw2@infradead.org \
    --cc=joakim.tjernlund@lumentis.se \
    --cc=joern@wohnheim.fh-wedel.de \
    --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