[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: garbage collect




nick@xxxxxxx.ru said:
>  How do you plan to do that? I mean avoid using mtdblock to mount JFFS
> filesystem.

The only thing that JFFS uses the mtdblock device for at the moment is to 
find the underlying MTD device:

	if (MAJOR(dev)!=MTD_BLOCK_MAJOR) {
          printk(KERN_WARNING "JFFS: Trying to mount non-mtd device.\n");
          return 0;
        }

	mtd = get_mtd_device(NULL, MINOR(dev));

By making removing the FS_REQUIRES_DEV argument, and having the mount 
program pass a string like "MTD0" to identify the MTD device instead, we 
can happily turn off CONFIG_BLK_DEV.

--
dwmw2