Lines Matching refs:cmd
117 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument
124 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
132 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument
172 if (IS_SETLKW(cmd)) in v9fs_file_do_lock()
188 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); in v9fs_file_lock_dotl()
311 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
316 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl()
317 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl()
318 else if (IS_GETLK(cmd)) in v9fs_file_lock_dotl()
333 static int v9fs_file_flock_dotl(struct file *filp, int cmd, in v9fs_file_flock_dotl() argument
340 filp, cmd, fl, filp); in v9fs_file_flock_dotl()
345 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_flock_dotl()
353 if (IS_SETLK(cmd) | IS_SETLKW(cmd)) in v9fs_file_flock_dotl()
354 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_flock_dotl()