]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ceph/cache.h
ceph: clean PgPrivate2 on returning from readpages
[karo-tx-linux.git] / fs / ceph / cache.h
index 0ea95cb7f389c94ba6b9e7c6a45334c59673cd75..fb326fd33251aaee1d7410f7e8d0aa75220fc40c 100644 (file)
@@ -58,6 +58,13 @@ static inline int ceph_release_fscache_page(struct page *page, gfp_t gfp)
        return fscache_maybe_release_page(ci->fscache, page, gfp);
 }
 
+static inline void ceph_fscache_readpages_cancel(struct inode *inode,
+                                                struct list_head *pages)
+{
+       struct ceph_inode_info *ci = ceph_inode(inode);
+       return fscache_readpages_cancel(ci->fscache, pages);
+}
+
 #else
 
 static inline int ceph_fscache_register(void)