Thread (4 messages) 4 messages, 3 authors, 2010-07-07

Re: [PATCH V3 3/8] Cleancache: core ops functions and configuration

From: Konrad Rzeszutek Wilk <hidden>
Date: 2010-07-06 20:51:21
Also in: linux-btrfs, linux-fsdevel, linux-mm, lkml, ocfs2-devel

On Tue, Jun 22, 2010 at 09:26:28AM -0700, Dave Hansen wrote:
On Mon, 2010-06-21 at 16:19 -0700, Dan Magenheimer wrote:
quoted
--- linux-2.6.35-rc2/include/linux/cleancache.h 1969-12-31 17:00:00.000000000 -0700
+++ linux-2.6.35-rc2-cleancache/include/linux/cleancache.h      2010-06-21 14:45:18.000000000 -0600
@@ -0,0 +1,88 @@
+#ifndef _LINUX_CLEANCACHE_H
+#define _LINUX_CLEANCACHE_H
+
+#include <linux/fs.h>
+#include <linux/mm.h>
+
+struct cleancache_ops {
+       int (*init_fs)(size_t);
+       int (*init_shared_fs)(char *uuid, size_t);
+       int (*get_page)(int, ino_t, pgoff_t, struct page *);
+       void (*put_page)(int, ino_t, pgoff_t, struct page *);
+       void (*flush_page)(int, ino_t, pgoff_t);
+       void (*flush_inode)(int, ino_t);
+       void (*flush_fs)(int);
+};
+ 
How would someone go about testing this code?  Is there an example
cleancache implementation?
Dan,

Can you reference with a link or a git branch the patches that utilize
this?

And also mention that in the 0/X patch so that folks can reference your
cleancache implementation?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help