Lines Matching refs:fl
24 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
30 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
89 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock()
98 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
103 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock()
108 return locks_lock_file_wait(file, fl); in ocfs2_flock()
110 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
111 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
113 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
116 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
121 if (!(fl->fl_flags & FL_POSIX)) in ocfs2_lock()
124 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()