Lines Matching refs:fl
23 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
29 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
71 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
81 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
88 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock()
97 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
102 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock()
107 return locks_lock_file_wait(file, fl); in ocfs2_flock()
109 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
110 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
112 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
115 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
120 if (!(fl->fl_flags & FL_POSIX)) in ocfs2_lock()
123 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()