diff options
Diffstat (limited to 'fs/cifs/fscache.h')
-rw-r--r-- | fs/cifs/fscache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h index 5e18a21eee9d..1a00d70bca97 100644 --- a/fs/cifs/fscache.h +++ b/fs/cifs/fscache.h | |||
@@ -51,6 +51,8 @@ extern void cifs_fscache_reset_inode_cookie(struct inode *); | |||
51 | extern void __cifs_fscache_invalidate_page(struct page *, struct inode *); | 51 | extern void __cifs_fscache_invalidate_page(struct page *, struct inode *); |
52 | extern int cifs_fscache_release_page(struct page *page, gfp_t gfp); | 52 | extern int cifs_fscache_release_page(struct page *page, gfp_t gfp); |
53 | 53 | ||
54 | extern void __cifs_readpage_to_fscache(struct inode *, struct page *); | ||
55 | |||
54 | static inline void cifs_fscache_invalidate_page(struct page *page, | 56 | static inline void cifs_fscache_invalidate_page(struct page *page, |
55 | struct inode *inode) | 57 | struct inode *inode) |
56 | { | 58 | { |
@@ -58,6 +60,13 @@ static inline void cifs_fscache_invalidate_page(struct page *page, | |||
58 | __cifs_fscache_invalidate_page(page, inode); | 60 | __cifs_fscache_invalidate_page(page, inode); |
59 | } | 61 | } |
60 | 62 | ||
63 | static inline void cifs_readpage_to_fscache(struct inode *inode, | ||
64 | struct page *page) | ||
65 | { | ||
66 | if (PageFsCache(page)) | ||
67 | __cifs_readpage_to_fscache(inode, page); | ||
68 | } | ||
69 | |||
61 | #else /* CONFIG_CIFS_FSCACHE */ | 70 | #else /* CONFIG_CIFS_FSCACHE */ |
62 | static inline int cifs_fscache_register(void) { return 0; } | 71 | static inline int cifs_fscache_register(void) { return 0; } |
63 | static inline void cifs_fscache_unregister(void) {} | 72 | static inline void cifs_fscache_unregister(void) {} |
@@ -81,6 +90,8 @@ static inline void cifs_fscache_release_page(struct page *page, gfp_t gfp) | |||
81 | 90 | ||
82 | static inline int cifs_fscache_invalidate_page(struct page *page, | 91 | static inline int cifs_fscache_invalidate_page(struct page *page, |
83 | struct inode *) {} | 92 | struct inode *) {} |
93 | static inline void cifs_readpage_to_fscache(struct inode *inode, | ||
94 | struct page *page) {} | ||
84 | 95 | ||
85 | #endif /* CONFIG_CIFS_FSCACHE */ | 96 | #endif /* CONFIG_CIFS_FSCACHE */ |
86 | 97 | ||