From: dexen deVries <dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Cleancache [3/3]
Date: Mon, 13 Jun 2011 20:08:06 +0200 [thread overview]
Message-ID: <201106132008.06511.dexen.devries@gmail.com> (raw)
In-Reply-To: <20110613.234048.21322431.ryusuke-sG5X7nlA6pw@public.gmane.org>
[-- Attachment #1: Type: Text/Plain, Size: 579 bytes --]
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.''
[-- Attachment #2: nilfs-cleancache-simplistic-enable.patch --]
[-- Type: text/x-patch, Size: 515 bytes --]
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];
next prev parent reply other threads:[~2011-06-13 18:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 13:14 Cleancache dexen deVries
[not found] ` <201106081514.59693.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-08 14:02 ` Cleancache Ryusuke Konishi
[not found] ` <20110608.230231.65968027.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-13 13:15 ` Cleancache Ryusuke Konishi
[not found] ` <20110613.221503.212701772.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-13 13:21 ` Cleancache dexen deVries
[not found] ` <201106131521.15372.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-13 14:40 ` Cleancache Ryusuke Konishi
[not found] ` <20110613.234048.21322431.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-13 17:54 ` Cleancache dexen deVries
2011-06-13 18:04 ` Cleancache [2] dexen deVries
[not found] ` <201106132004.41118.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-14 16:17 ` Ryusuke Konishi
[not found] ` <BANLkTikdQLrp3EMGq=BV83BQKKkN1Emdcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-20 18:16 ` Ryusuke Konishi
2011-06-13 18:08 ` dexen deVries [this message]
2011-06-13 22:38 ` Cleancache [kernel config] dexen deVries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201106132008.06511.dexen.devries@gmail.com \
--to=dexen.devries-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.