linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] f2fs: add cleancache support
@ 2014-11-13  5:34 Changman Lee
  2014-11-14  1:27 ` [f2fs-dev] " Jaegeuk Kim
  2014-11-14  3:08 ` Chao Yu
  0 siblings, 2 replies; 11+ messages in thread
From: Changman Lee @ 2014-11-13  5:34 UTC (permalink / raw)
  To: linux-fsdevel, linux-f2fs-devel; +Cc: Changman Lee

To use cleancache, fs must explicitly enable cleancache by calling
cleancache_init_fs.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
---
 fs/f2fs/super.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 512ffd8..2ebb960 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -24,6 +24,7 @@
 #include <linux/blkdev.h>
 #include <linux/f2fs_fs.h>
 #include <linux/sysfs.h>
+#include <linux/cleancache.h>
 
 #include "f2fs.h"
 #include "node.h"
@@ -1144,6 +1145,8 @@ try_onemore:
 		if (err)
 			goto free_kobj;
 	}
+
+	cleancache_init_fs(sb);
 	return 0;
 
 free_kobj:
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-24  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13  5:34 [PATCH] f2fs: add cleancache support Changman Lee
2014-11-14  1:27 ` [f2fs-dev] " Jaegeuk Kim
2014-11-14  5:53   ` Changman Lee
2014-11-20  4:38     ` Changman Lee
2014-11-24  5:42       ` Jaegeuk Kim
2014-11-24  6:19         ` Changman Lee
2014-11-24  7:18           ` Jaegeuk Kim
2014-11-24  8:10             ` Changman Lee
2014-11-14  3:08 ` Chao Yu
2014-11-14  5:39   ` Changman Lee
2014-11-18  3:30     ` [f2fs-dev] " Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).