Lines Matching refs:flock
132 struct p9_flock flock; in v9fs_file_do_lock() local
149 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock()
153 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock()
156 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock()
159 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock()
162 flock.start = fl->fl_start; in v9fs_file_do_lock()
164 flock.length = 0; in v9fs_file_do_lock()
166 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
167 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock()
168 flock.client_id = fid->clnt->name; in v9fs_file_do_lock()
170 flock.flags = P9_LOCK_FLAGS_BLOCK; in v9fs_file_do_lock()
179 res = p9_client_lock_dotl(fid, &flock, &status); in v9fs_file_do_lock()
194 if (flock.client_id != fid->clnt->name) { in v9fs_file_do_lock()
195 kfree(flock.client_id); in v9fs_file_do_lock()
196 flock.client_id = fid->clnt->name; in v9fs_file_do_lock()
229 if (flock.client_id != fid->clnt->name) in v9fs_file_do_lock()
230 kfree(flock.client_id); in v9fs_file_do_lock()
651 .flock = v9fs_file_flock_dotl,
678 .flock = v9fs_file_flock_dotl,
705 .flock = v9fs_file_flock_dotl,