Lines Matching refs:cmd
104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument
110 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument
157 if (IS_SETLKW(cmd)) in v9fs_file_do_lock()
173 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock()
288 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument
294 filp, cmd, fl, filp); in v9fs_file_lock_dotl()
296 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
301 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl()
302 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl()
303 else if (IS_GETLK(cmd)) in v9fs_file_lock_dotl()
318 static int v9fs_file_flock_dotl(struct file *filp, int cmd, in v9fs_file_flock_dotl() argument
325 filp, cmd, fl, filp); in v9fs_file_flock_dotl()
330 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_flock_dotl()
338 if (IS_SETLK(cmd) | IS_SETLKW(cmd)) in v9fs_file_flock_dotl()
339 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_flock_dotl()