Lines Matching refs:fl
39 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
45 if (fl->fl_type == F_WRLCK) in ocfs2_do_flock()
84 ret = flock_lock_file_wait(file, fl); in ocfs2_do_flock()
92 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
99 ret = flock_lock_file_wait(file, fl); in ocfs2_do_funlock()
108 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
113 if (!(fl->fl_flags & FL_FLOCK)) in ocfs2_flock()
120 return flock_lock_file_wait(file, fl); in ocfs2_flock()
122 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
123 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
125 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
128 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
133 if (!(fl->fl_flags & FL_POSIX)) in ocfs2_lock()
135 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in ocfs2_lock()
138 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()