c->wbuf_pagesize = c->sector_size; 
  c->wbuf_pagesize =  c->mtd->erasesize;  /* Find a suitable c->sector_size * - Not too much sectors * - Sectors have to be at least 4 K + some bytes * - All known dataflashes have erase sizes of 528 or 1056 * - we take at least 8 eraseblocks and want to have at least 8K size * - The concatenation should be a power of 2 */  c->sector_size = 8 * c->mtd->erasesize;  while (c->sector_size < 8192) { c->sector_size *= 2; }  /* It may be necessary to adjust the flash size */ c->flash_size = c->mtd->size;  if ((c->flash_size % c->sector_size) != 0) { c->flash_size = (c->flash_size / c->sector_size) * c->sector_size; printk(KERN_WARNING "JFFS2 flash size adjusted to %dKiB\n", c->flash_size); };  
int jffs2_dataflash_setup(struct jffs2_sb_info *c) {	c->cleanmarker_size = 0;		/* No cleanmarkers needed */		/* Initialize write buffer */	init_rwsem(&c->wbuf_sem);	c->wbuf_pagesize = c->sector_size;	c->wbuf_ofs = 0xFFFFFFFF;	c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);	if (!c->wbuf)		return -ENOMEM;	printk(KERN_INFO "JFFS2 write-buffering enabled (%i)\n", c->wbuf_pagesize);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/daba5cc4bcd025a9b4fd02a9117c71bfd400d811/wbuf.c/buggy/fs/jffs2/wbuf.c