summaryrefslogtreecommitdiffstats
path: root/fs/9p/cache.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-17 14:07:11 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-25 05:34:47 +0200
commitceaec15d49f29de1f8864e31ff4007c34b031bff (patch)
tree1041f5725f6d4a3381068122abb8822705a1bc95 /fs/9p/cache.h
parentLinux 3.12-rc4 (diff)
downloadlinux-ceaec15d49f29de1f8864e31ff4007c34b031bff.tar.xz
linux-ceaec15d49f29de1f8864e31ff4007c34b031bff.zip
9p: make v9fs_cache_inode_{get,put,set}_cookie empty inlines for !9P_CACHEFS
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/cache.h')
-rw-r--r--fs/9p/cache.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/9p/cache.h b/fs/9p/cache.h
index 40cc54ced5d9..2f9675491095 100644
--- a/fs/9p/cache.h
+++ b/fs/9p/cache.h
@@ -101,6 +101,18 @@ static inline void v9fs_fscache_wait_on_page_write(struct inode *inode,
#else /* CONFIG_9P_FSCACHE */
+static inline void v9fs_cache_inode_get_cookie(struct inode *inode)
+{
+}
+
+static inline void v9fs_cache_inode_put_cookie(struct inode *inode)
+{
+}
+
+static inline void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *file)
+{
+}
+
static inline int v9fs_fscache_release_page(struct page *page,
gfp_t gfp) {
return 1;