Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Adrian Bunk | c98d8cf | 2006-03-24 03:15:53 -0800 | [diff] [blame] | 2 | #ifndef _CODA_INT_ |
| 3 | #define _CODA_INT_ |
| 4 | |
Jan Harkes | 3cf01f2 | 2007-07-19 01:48:51 -0700 | [diff] [blame] | 5 | struct dentry; |
Alexey Dobriyan | 8d65af7 | 2009-09-23 15:57:19 -0700 | [diff] [blame] | 6 | struct file; |
Jan Harkes | 3cf01f2 | 2007-07-19 01:48:51 -0700 | [diff] [blame] | 7 | |
Adrian Bunk | c98d8cf | 2006-03-24 03:15:53 -0800 | [diff] [blame] | 8 | extern struct file_system_type coda_fs_type; |
Jan Harkes | 3cf01f2 | 2007-07-19 01:48:51 -0700 | [diff] [blame] | 9 | extern unsigned long coda_timeout; |
| 10 | extern int coda_hard; |
| 11 | extern int coda_fake_statfs; |
Adrian Bunk | c98d8cf | 2006-03-24 03:15:53 -0800 | [diff] [blame] | 12 | |
| 13 | void coda_destroy_inodecache(void); |
Fabian Frederick | 5f356fd | 2014-04-03 14:50:24 -0700 | [diff] [blame] | 14 | int __init coda_init_inodecache(void); |
Josef Bacik | 02c24a8 | 2011-07-16 20:44:56 -0400 | [diff] [blame] | 15 | int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync); |
Fabian Frederick | 6975259 | 2019-07-16 16:29:03 -0700 | [diff] [blame] | 16 | |
| 17 | #ifdef CONFIG_SYSCTL |
Jan Harkes | 3cf01f2 | 2007-07-19 01:48:51 -0700 | [diff] [blame] | 18 | void coda_sysctl_init(void); |
| 19 | void coda_sysctl_clean(void); |
Fabian Frederick | 6975259 | 2019-07-16 16:29:03 -0700 | [diff] [blame] | 20 | #else |
| 21 | static inline void coda_sysctl_init(void) |
| 22 | { |
| 23 | } |
Adrian Bunk | c98d8cf | 2006-03-24 03:15:53 -0800 | [diff] [blame] | 24 | |
Fabian Frederick | 6975259 | 2019-07-16 16:29:03 -0700 | [diff] [blame] | 25 | static inline void coda_sysctl_clean(void) |
| 26 | { |
| 27 | } |
| 28 | #endif |
Adrian Bunk | c98d8cf | 2006-03-24 03:15:53 -0800 | [diff] [blame] | 29 | #endif /* _CODA_INT_ */ |
| 30 | |
| 31 | |