Lines Matching refs:glock
258 struct p9_getlock glock; in v9fs_file_getlock() local
274 memset(&glock, 0, sizeof(glock)); in v9fs_file_getlock()
275 glock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_getlock()
276 glock.start = fl->fl_start; in v9fs_file_getlock()
278 glock.length = 0; in v9fs_file_getlock()
280 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock()
281 glock.proc_id = fl->fl_pid; in v9fs_file_getlock()
282 glock.client_id = fid->clnt->name; in v9fs_file_getlock()
284 res = p9_client_getlock_dotl(fid, &glock); in v9fs_file_getlock()
288 switch (glock.type) { in v9fs_file_getlock()
299 if (glock.type != P9_LOCK_TYPE_UNLCK) { in v9fs_file_getlock()
300 fl->fl_start = glock.start; in v9fs_file_getlock()
301 if (glock.length == 0) in v9fs_file_getlock()
304 fl->fl_end = glock.start + glock.length - 1; in v9fs_file_getlock()
305 fl->fl_pid = -glock.proc_id; in v9fs_file_getlock()
308 if (glock.client_id != fid->clnt->name) in v9fs_file_getlock()
309 kfree(glock.client_id); in v9fs_file_getlock()