Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * V9FS cache definitions.
0004  *
0005  *  Copyright (C) 2009 by Abhishek Kulkarni <adkulkar@umail.iu.edu>
0006  */
0007 
0008 #ifndef _9P_CACHE_H
0009 #define _9P_CACHE_H
0010 
0011 #include <linux/fscache.h>
0012 
0013 #ifdef CONFIG_9P_FSCACHE
0014 
0015 extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
0016                       const char *dev_name);
0017 
0018 extern void v9fs_cache_inode_get_cookie(struct inode *inode);
0019 
0020 #else /* CONFIG_9P_FSCACHE */
0021 
0022 static inline void v9fs_cache_inode_get_cookie(struct inode *inode)
0023 {
0024 }
0025 
0026 #endif /* CONFIG_9P_FSCACHE */
0027 #endif /* _9P_CACHE_H */