Lines Matching refs:file

68 		struct file *file, umode_t mode);
84 int mnt_get_write_access_file(struct file *file);
85 void mnt_put_write_access_file(struct file *file);
104 struct file *alloc_empty_file(int flags, const struct cred *cred);
105 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred);
106 struct file *alloc_empty_backing_file(int flags, const struct cred *cred);
107 void backing_file_set_user_path(struct file *f, const struct path *path);
109 static inline void file_put_write_access(struct file *file) in file_put_write_access() argument
111 put_write_access(file->f_inode); in file_put_write_access()
112 mnt_put_write_access(file->f_path.mnt); in file_put_write_access()
113 if (unlikely(file->f_mode & FMODE_BACKING)) in file_put_write_access()
114 mnt_put_write_access(backing_file_user_path(file)->mnt); in file_put_write_access()
117 static inline void put_file_access(struct file *file) in put_file_access() argument
119 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in put_file_access()
120 i_readcount_dec(file->f_inode); in put_file_access()
121 } else if (file->f_mode & FMODE_WRITER) { in put_file_access()
122 file_put_write_access(file); in put_file_access()
126 void fput_close_sync(struct file *);
127 void fput_close(struct file *);
190 extern struct file *do_filp_open(int dfd, struct filename *pathname,
192 extern struct file *do_file_open_root(const struct path *,
196 struct file *file_close_fd_locked(struct files_struct *files, unsigned fd);
198 int do_ftruncate(struct file *file, loff_t length, int small);
204 extern int vfs_open(const struct path *, struct file *);
263 ssize_t splice_file_to_pipe(struct file *in,
288 ssize_t file_getxattr(struct file *file, struct kernel_xattr_ctx *ctx);
291 int file_setxattr(struct file *file, struct kernel_xattr_ctx *ctx);
319 ssize_t __kernel_write_iter(struct file *file, struct iov_iter *from, loff_t *pos);
350 void file_f_owner_release(struct file *file);
351 bool file_seek_cur_needs_f_lock(struct file *file);