From a4c15d9c62d59036cd488e26de5d2a1030e8d4f3 Mon Sep 17 00:00:00 2001 From: sage Date: Thu, 18 May 2006 18:31:32 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@772 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/client/FileCache.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ceph/client/FileCache.h diff --git a/ceph/client/FileCache.h b/ceph/client/FileCache.h new file mode 100644 index 0000000000000..aea592d8ba6de --- /dev/null +++ b/ceph/client/FileCache.h @@ -0,0 +1,21 @@ +#ifndef __FILECACHE_H +#define __FILECACHE_H + +#include "Filer.h" + +class FileCache { + ObjectCacher *oc; + Filer filer; + inodeno_t ino; + + public: + FileCache(ObjectCacher *_oc, inodeno_t _ino) : + oc(_oc), + filer(_oc), ino(_ino) {} + + void flush_dirty(Context *onflush=0); // blocks if !onfinish + void release_clean(Context *onfinish=0); // blocks if !onfinish +}; + + +#endif -- 2.39.5