|
@@ -51,6 +51,8 @@ extern void cifs_fscache_reset_inode_cookie(struct inode *);
|
|
|
extern void __cifs_fscache_invalidate_page(struct page *, struct inode *);
|
|
|
extern int cifs_fscache_release_page(struct page *page, gfp_t gfp);
|
|
|
|
|
|
+extern void __cifs_readpage_to_fscache(struct inode *, struct page *);
|
|
|
+
|
|
|
static inline void cifs_fscache_invalidate_page(struct page *page,
|
|
|
struct inode *inode)
|
|
|
{
|
|
@@ -58,6 +60,13 @@ static inline void cifs_fscache_invalidate_page(struct page *page,
|
|
|
__cifs_fscache_invalidate_page(page, inode);
|
|
|
}
|
|
|
|
|
|
+static inline void cifs_readpage_to_fscache(struct inode *inode,
|
|
|
+ struct page *page)
|
|
|
+{
|
|
|
+ if (PageFsCache(page))
|
|
|
+ __cifs_readpage_to_fscache(inode, page);
|
|
|
+}
|
|
|
+
|
|
|
#else /* CONFIG_CIFS_FSCACHE */
|
|
|
static inline int cifs_fscache_register(void) { return 0; }
|
|
|
static inline void cifs_fscache_unregister(void) {}
|
|
@@ -81,6 +90,8 @@ static inline void cifs_fscache_release_page(struct page *page, gfp_t gfp)
|
|
|
|
|
|
static inline int cifs_fscache_invalidate_page(struct page *page,
|
|
|
struct inode *) {}
|
|
|
+static inline void cifs_readpage_to_fscache(struct inode *inode,
|
|
|
+ struct page *page) {}
|
|
|
|
|
|
#endif /* CONFIG_CIFS_FSCACHE */
|
|
|
|