Thomas Gleixner | 1f32761 | 2019-05-28 09:57:16 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 2 | /* |
| 3 | * V9FS cache definitions. |
| 4 | * |
| 5 | * Copyright (C) 2009 by Abhishek Kulkarni <adkulkar@umail.iu.edu> |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _9P_CACHE_H |
Tzvetelin Katchov | 7c7afc4 | 2015-10-07 20:15:21 -0400 | [diff] [blame] | 9 | #define _9P_CACHE_H |
David Howells | 24e42e3 | 2020-11-18 09:06:42 +0000 | [diff] [blame] | 10 | |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 11 | #include <linux/fscache.h> |
David Howells | eb49794 | 2021-11-02 08:29:55 +0000 | [diff] [blame] | 12 | |
| 13 | #ifdef CONFIG_9P_FSCACHE |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 14 | |
David Howells | 24e42e3 | 2020-11-18 09:06:42 +0000 | [diff] [blame] | 15 | extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses, |
| 16 | const char *dev_name); |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 17 | |
| 18 | extern void v9fs_cache_inode_get_cookie(struct inode *inode); |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 19 | |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 20 | #else /* CONFIG_9P_FSCACHE */ |
| 21 | |
Al Viro | ceaec15 | 2013-09-17 08:07:11 -0400 | [diff] [blame] | 22 | static inline void v9fs_cache_inode_get_cookie(struct inode *inode) |
| 23 | { |
| 24 | } |
| 25 | |
Abhishek Kulkarni | 60e78d2 | 2009-09-23 13:00:27 -0500 | [diff] [blame] | 26 | #endif /* CONFIG_9P_FSCACHE */ |
| 27 | #endif /* _9P_CACHE_H */ |