2019-05-28 09:57:16 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2009-09-23 13:00:27 -05:00
|
|
|
/*
|
|
|
|
|
* V9FS cache definitions.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2009 by Abhishek Kulkarni <adkulkar@umail.iu.edu>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _9P_CACHE_H
|
2015-10-07 20:15:21 -04:00
|
|
|
#define _9P_CACHE_H
|
2020-11-18 09:06:42 +00:00
|
|
|
|
2021-11-02 08:29:55 +00:00
|
|
|
#ifdef CONFIG_9P_FSCACHE
|
2023-03-27 01:53:10 +00:00
|
|
|
#include <linux/fscache.h>
|
2009-09-23 13:00:27 -05:00
|
|
|
|
2020-11-18 09:06:42 +00:00
|
|
|
extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
|
|
|
|
|
const char *dev_name);
|
2009-09-23 13:00:27 -05:00
|
|
|
|
|
|
|
|
extern void v9fs_cache_inode_get_cookie(struct inode *inode);
|
|
|
|
|
|
|
|
|
|
#else /* CONFIG_9P_FSCACHE */
|
|
|
|
|
|
2013-09-17 08:07:11 -04:00
|
|
|
static inline void v9fs_cache_inode_get_cookie(struct inode *inode)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2009-09-23 13:00:27 -05:00
|
|
|
#endif /* CONFIG_9P_FSCACHE */
|
|
|
|
|
#endif /* _9P_CACHE_H */
|