Lines Matching refs:cmd
133 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument
144 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
152 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument
191 if (IS_SETLKW(cmd)) in v9fs_file_do_lock()
205 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock()
303 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument
309 filp, cmd, fl, filp->f_path.dentry->d_name.name); in v9fs_file_lock_dotl()
315 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
320 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl()
321 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl()
322 else if (IS_GETLK(cmd)) in v9fs_file_lock_dotl()
338 static int v9fs_file_flock_dotl(struct file *filp, int cmd, in v9fs_file_flock_dotl() argument
345 filp, cmd, fl, filp->f_path.dentry->d_name.name); in v9fs_file_flock_dotl()
354 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_flock_dotl()
365 if (IS_SETLK(cmd) | IS_SETLKW(cmd)) in v9fs_file_flock_dotl()
366 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_flock_dotl()