On Monday 13 June 2011 16:40:48 you wrote: > So, you hit the bug on a raw hadrware. > In my hardware, /sys/kernel/mm/cleancache/* didn't change. which most probably means you haven't had zcache enabled, due to the bug in its build system (as described in prev mail). Attached is the silly patch I've used to enable cleancache for NILFS2. I have virtually no experience with in-kernel programming, so it may be very, very wrong. Terribly sorry in advance... Happy hacking, Ryusuke, -- dexen deVries ``One can't proceed from the informal to the formal by formal means.''
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 8351c44..57022bc 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -48,6 +48,7 @@ #include <linux/writeback.h> #include <linux/seq_file.h> #include <linux/mount.h> +#include <linux/cleancache.h> #include "nilfs.h" #include "export.h" #include "mdt.h" @@ -1296,6 +1297,7 @@ nilfs_mount(struct file_system_type *fs_type, int flags, err = PTR_ERR(s); goto failed; } + cleancache_init_fs(s); if (!s->s_root) { char b[BDEVNAME_SIZE];