[doesn't work] JFFS2: Dynamically choose inocache hash size
Joakim Tjernlund
joakim.tjernlund at transmode.se
Thu Oct 7 12:24:23 EDT 2010
dsd.olpc at gmail.com wrote on 2010/10/07 18:09:59:
>
> On 7 October 2010 16:33, Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> > Does #define INOCACHE_HASHSIZE <something bigger> work?
>
> Yes. Tested for years as value 1024 in OLPC builds.
OK, Good.
>
> > if so I would guess something is using inocache_hashsize before
> > it is initialized.
>
> Me too. But it's initialized early, at the same time as inocache_list.
> And all users of inocache_hashsize use the list at the same time. So
> if that were as obvious as it sounds, we'd be seeing bigger problems.
Sure, but something might still use it before. Try adding an
assert(inocache_hashsize) wherever you use inocache_hashsize.
More information about the linux-mtd
mailing list