Lines Matching refs:glock
243 struct p9_getlock glock; in v9fs_file_getlock() local
259 memset(&glock, 0, sizeof(glock)); in v9fs_file_getlock()
260 glock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_getlock()
261 glock.start = fl->fl_start; in v9fs_file_getlock()
263 glock.length = 0; in v9fs_file_getlock()
265 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock()
266 glock.proc_id = fl->fl_pid; in v9fs_file_getlock()
267 glock.client_id = fid->clnt->name; in v9fs_file_getlock()
269 res = p9_client_getlock_dotl(fid, &glock); in v9fs_file_getlock()
273 switch (glock.type) { in v9fs_file_getlock()
284 if (glock.type != P9_LOCK_TYPE_UNLCK) { in v9fs_file_getlock()
285 fl->fl_start = glock.start; in v9fs_file_getlock()
286 if (glock.length == 0) in v9fs_file_getlock()
289 fl->fl_end = glock.start + glock.length - 1; in v9fs_file_getlock()
290 fl->fl_pid = glock.proc_id; in v9fs_file_getlock()
292 kfree(glock.client_id); in v9fs_file_getlock()