blob: f82b59c9dd287b3681101b77043427eede00c63d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Adrian Bunkc98d8cf2006-03-24 03:15:53 -08002#ifndef _CODA_INT_
3#define _CODA_INT_
4
Jan Harkes3cf01f22007-07-19 01:48:51 -07005struct dentry;
Alexey Dobriyan8d65af72009-09-23 15:57:19 -07006struct file;
Jan Harkes3cf01f22007-07-19 01:48:51 -07007
Adrian Bunkc98d8cf2006-03-24 03:15:53 -08008extern struct file_system_type coda_fs_type;
Jan Harkes3cf01f22007-07-19 01:48:51 -07009extern unsigned long coda_timeout;
10extern int coda_hard;
11extern int coda_fake_statfs;
Adrian Bunkc98d8cf2006-03-24 03:15:53 -080012
13void coda_destroy_inodecache(void);
Fabian Frederick5f356fd2014-04-03 14:50:24 -070014int __init coda_init_inodecache(void);
Josef Bacik02c24a82011-07-16 20:44:56 -040015int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
Fabian Frederick69752592019-07-16 16:29:03 -070016
17#ifdef CONFIG_SYSCTL
Jan Harkes3cf01f22007-07-19 01:48:51 -070018void coda_sysctl_init(void);
19void coda_sysctl_clean(void);
Fabian Frederick69752592019-07-16 16:29:03 -070020#else
21static inline void coda_sysctl_init(void)
22{
23}
Adrian Bunkc98d8cf2006-03-24 03:15:53 -080024
Fabian Frederick69752592019-07-16 16:29:03 -070025static inline void coda_sysctl_clean(void)
26{
27}
28#endif
Adrian Bunkc98d8cf2006-03-24 03:15:53 -080029#endif /* _CODA_INT_ */
30
31