Lines Matching refs:file
4 #include <linux/file.h>
209 static int try_unlock_file(struct file *file, struct file_lock *fl)
214 err = locks_lock_file_wait(file, fl);
228 int ceph_lock(struct file *file, int cmd, struct file_lock *fl)
230 struct inode *inode = file_inode(file);
240 if (__mandatory_lock(file->f_mapping->host) && fl->fl_type != F_UNLCK)
258 posix_lock_file(file, fl, NULL);
270 err = try_unlock_file(file, fl);
279 err = posix_lock_file(file, fl, NULL);
294 int ceph_flock(struct file *file, int cmd, struct file_lock *fl)
296 struct inode *inode = file_inode(file);
317 locks_lock_file_wait(file, fl);
332 err = try_unlock_file(file, fl);
340 err = locks_lock_file_wait(file, fl);