Lines Matching refs:lock
95 * v9fs_file_lock - lock a file (or directory)
97 * @cmd: lock command
98 * @fl: file lock structure
100 * Bugs: this looks like a local only lock, we should extend into 9P
108 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
135 /* convert posix lock to p9 tlock args */
137 /* map the lock type */
163 * for lock request, keep on trying
196 WARN_ONCE(1, "unknown lock status code: %d\n", status);
206 * incase server returned error for lock request, revert
234 * if we have a conflicting lock locally, no need to validate
240 /* convert posix lock to p9 tgetlock args */
254 /* map 9p lock type to os lock type */
281 * v9fs_file_lock_dotl - lock a file (or directory)
283 * @cmd: lock command
284 * @fl: file lock structure
293 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %pD\n",
311 * v9fs_file_flock_dotl - lock a file
313 * @cmd: lock command
314 * @fl: file lock structure
324 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %pD\n",
334 /* Convert flock to posix lock */
518 .lock = v9fs_file_lock,
532 .lock = v9fs_file_lock_dotl,