aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/file.h b/include/linux/file.h
index 0114fbc78061..56023c74e9fd 100644
--- a/include/linux/file.h
+++ b/include/linux/file.h
@@ -62,6 +62,15 @@ extern struct kmem_cache *filp_cachep;
62extern void FASTCALL(__fput(struct file *)); 62extern void FASTCALL(__fput(struct file *));
63extern void FASTCALL(fput(struct file *)); 63extern void FASTCALL(fput(struct file *));
64 64
65struct file_operations;
66struct vfsmount;
67struct dentry;
68extern int init_file(struct file *, struct vfsmount *mnt,
69 struct dentry *dentry, mode_t mode,
70 const struct file_operations *fop);
71extern struct file *alloc_file(struct vfsmount *, struct dentry *dentry,
72 mode_t mode, const struct file_operations *fop);
73
65static inline void fput_light(struct file *file, int fput_needed) 74static inline void fput_light(struct file *file, int fput_needed)
66{ 75{
67 if (unlikely(fput_needed)) 76 if (unlikely(fput_needed))