[PATCH] devtmpfs: support !CONFIG_TMPFS

2010-03-12 Thread Peter Korsgaard
Make devtmpfs available on (embedded) configurations without SHMEM/TMPFS, using ramfs instead. Saves ~15KB. Signed-off-by: Peter Korsgaard jac...@sunsite.dk --- drivers/base/Kconfig|2 +- drivers/base/devtmpfs.c |5 + fs/ramfs/inode.c|2 +- include/linux/ramfs.h |

Re: [PATCH] devtmpfs: support !CONFIG_TMPFS

2010-03-12 Thread Michael Tokarev
Peter Korsgaard wrote: Make devtmpfs available on (embedded) configurations without SHMEM/TMPFS, using ramfs instead. Saves ~15KB. Signed-off-by: Peter Korsgaard jac...@sunsite.dk [] --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -44,7 +45,11 @@ __setup(devtmpfs.mount=,

Re: [PATCH] devtmpfs: support !CONFIG_TMPFS

2010-03-12 Thread Peter Korsgaard
Michael == Michael Tokarev m...@tls.msk.ru writes: Hi, +#ifdef CONFIG_TMPFS return get_sb_single(fs_type, flags, data, shmem_fill_super, mnt); +#else + return get_sb_single(fs_type, flags, data, ramfs_fill_super, mnt); +#endif } Michael May be completely not to the point or even

Re: [PATCH] devtmpfs: support !CONFIG_TMPFS

2010-03-12 Thread Kay Sievers
On Fri, Mar 12, 2010 at 12:38, Peter Korsgaard jac...@sunsite.dk wrote: Michael == Michael Tokarev m...@tls.msk.ru writes:   +#ifdef CONFIG_TMPFS   return get_sb_single(fs_type, flags, data, shmem_fill_super, mnt);   +#else   +   return get_sb_single(fs_type, flags, data, ramfs_fill_super,

Re: [PATCH v2] char drivers: Ram oops/panic logger

2010-03-12 Thread Jamie Lokier
Andrew Morton wrote: I meant with the classic use of mtdoops, therefore with a flash partition without use MTD_RAM. Using MTD_RAM, it's more or less the same thing, with the exception of where you want deploy the log. For example: if in your system you have got a nvram you can use it