blob: 1923affcdc62f187444c9ae712209705e98f419f [file] [log] [blame]
Thomas Gleixner1f327612019-05-28 09:57:16 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -05002/*
3 * V9FS cache definitions.
4 *
5 * Copyright (C) 2009 by Abhishek Kulkarni <adkulkar@umail.iu.edu>
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -05006 */
7
8#ifndef _9P_CACHE_H
Tzvetelin Katchov7c7afc42015-10-07 20:15:21 -04009#define _9P_CACHE_H
David Howells24e42e32020-11-18 09:06:42 +000010
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050011#include <linux/fscache.h>
David Howellseb497942021-11-02 08:29:55 +000012
13#ifdef CONFIG_9P_FSCACHE
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050014
David Howells24e42e32020-11-18 09:06:42 +000015extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
16 const char *dev_name);
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050017
18extern void v9fs_cache_inode_get_cookie(struct inode *inode);
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050019
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050020#else /* CONFIG_9P_FSCACHE */
21
Al Viroceaec152013-09-17 08:07:11 -040022static inline void v9fs_cache_inode_get_cookie(struct inode *inode)
23{
24}
25
Abhishek Kulkarni60e78d22009-09-23 13:00:27 -050026#endif /* CONFIG_9P_FSCACHE */
27#endif /* _9P_CACHE_H */