Lines Matching refs:fl
25 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
31 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
73 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
83 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
90 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock()
99 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
104 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock()
111 return locks_lock_file_wait(file, fl); in ocfs2_flock()
113 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
114 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
116 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
119 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
124 if (!(fl->fl_flags & FL_POSIX)) in ocfs2_lock()
126 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in ocfs2_lock()
129 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()