[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b4c84ba0eeeda3bf915524c8173d44abb30506ff.1384183054.git.liwang@ubuntukylin.com>
Date: Tue, 12 Nov 2013 09:25:38 +0800
From: Li Wang <liwang@...ntukylin.com>
To: linux-kernel@...r.kernel.org
Cc: ceph-devel@...r.kernel.org, Sage Weil <sage@...tank.com>,
linux-fsdevel@...r.kernel.org, Steve French <sfrench@...ba.org>,
linux-cifs@...r.kernel.org, Milosz Tanski <milosz@...in.com>,
David Howells <dhowells@...hat.com>, linux-cachefs@...hat.com,
Li Wang <liwang@...ntukylin.com>
Subject: [PATCH 5/7] Cifs: Introduce routine for uncaching single no-data page
Introduce a routine for uncaching single no-data page, typically
in readpage().
Signed-off-by: Li Wang <liwang@...ntukylin.com>
---
fs/cifs/fscache.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h
index 24794b6..c712f42 100644
--- a/fs/cifs/fscache.h
+++ b/fs/cifs/fscache.h
@@ -54,6 +54,7 @@ extern int __cifs_readpages_from_fscache(struct inode *,
struct address_space *,
struct list_head *,
unsigned *);
+extern void __cifs_fscache_readpage_cancel(struct inode *, struct page *);
extern void __cifs_fscache_readpages_cancel(struct inode *, struct list_head *);
extern void __cifs_readpage_to_fscache(struct inode *, struct page *);
@@ -92,6 +93,13 @@ static inline void cifs_readpage_to_fscache(struct inode *inode,
__cifs_readpage_to_fscache(inode, page);
}
+static inline void cifs_fscache_readpage_cancel(struct inode *inode,
+ struct page *page)
+{
+ if (CIFS_I(inode)->fscache)
+ return __cifs_fscache_readpage_cancel(inode, page);
+}
+
static inline void cifs_fscache_readpages_cancel(struct inode *inode,
struct list_head *pages)
{
@@ -139,6 +147,11 @@ static inline int cifs_readpages_from_fscache(struct inode *inode,
static inline void cifs_readpage_to_fscache(struct inode *inode,
struct page *page) {}
+static inline void cifs_fscache_readpage_cancel(struct inode *inode,
+ struct page *page)
+{
+}
+
static inline void cifs_fscache_readpages_cancel(struct inode *inode,
struct list_head *pages)
{
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists