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