Lines Matching defs:glock
225 struct p9_getlock glock;
241 memset(&glock, 0, sizeof(glock));
242 glock.type = P9_LOCK_TYPE_UNLCK;
243 glock.start = fl->fl_start;
245 glock.length = 0;
247 glock.length = fl->fl_end - fl->fl_start + 1;
248 glock.proc_id = fl->fl_pid;
249 glock.client_id = fid->clnt->name;
251 res = p9_client_getlock_dotl(fid, &glock);
255 switch (glock.type) {
266 if (glock.type != P9_LOCK_TYPE_UNLCK) {
267 fl->fl_start = glock.start;
268 if (glock.length == 0)
271 fl->fl_end = glock.start + glock.length - 1;
272 fl->fl_pid = -glock.proc_id;
275 if (glock.client_id != fid->clnt->name)
276 kfree(glock.client_id);