mkfs.jffs2.c rework

Erik Andersen andersen at codepoet.org
Mon Nov 25 07:06:49 EST 2002


On Mon Nov 25, 2002 at 11:49:05AM +0000, David Woodhouse wrote:
> 
> > /* The kernel assumes PAGE_CACHE_SIZE as block size. */
> > #if defined(__ia64__)
> > # define PAGE_CACHE_SIZE (16384)
> > #else
> > # define PAGE_CACHE_SIZE (4096)
> > #endif
> 
> Er, so if you're cross-building your file system on an IA64, it gets a page
> size of 16KiB by default? No likee :)
> 
> Anyway, page size isn't even always 16KiB on IA64 either, is it? Stick to 
> 4KiB default -- it's safer. If you know the target system has a larger page 
> size, you can specify it on the command line. Same logic as keeping the 
> erase size small by default.

Hmm.  Ok, your're the boss.  I guess we can pretend it's always
4096 as long as the kernel code is doing the right thing.  It
looked like the kernel code was assuming the block size matched
the page cache size.  No big deal.  I don't have any Itanics or
similar 64 bit boxen, so I don't really care anyways.  :) 

> How about changing cpu_to_target32() et al. to be cpu_to_je32() to match the 
> JFFS2 code?

Can do...

> Also, could we have an option to write cleanmarkers to the beginning of 
> each block?

I suppose so, the code is pretty clean now I think.  
Whats a cleanmarker?  :)

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--




More information about the linux-mtd mailing list