Lines Matching defs:fl
34 void *fl;
75 int cmd, struct file_lock *fl)
94 op->info.pid = fl->fl_pid;
95 op->info.ex = (fl->fl_type == F_WRLCK);
99 op->info.start = fl->fl_start;
100 op->info.end = fl->fl_end;
101 if (fl->fl_lmops && fl->fl_lmops->fl_grant) {
104 op->info.owner = (__u64) fl->fl_pid;
105 xop->callback = fl->fl_lmops->fl_grant;
107 locks_copy_lock(&xop->flc, fl);
108 xop->fl = fl;
111 op->info.owner = (__u64)(long) fl->fl_owner;
135 if (posix_lock_file_wait(file, fl) < 0)
151 struct file_lock *fl;
168 fl = xop->fl;
172 notify(fl, NULL, op->info.rv);
187 log_print("dlm_plock_callback: vfs lock error %llx file %p fl %p",
188 (unsigned long long)op->info.number, file, fl);
191 rv = notify(fl, NULL, 0);
204 struct file_lock *fl)
220 if (posix_lock_file_wait(file, fl) < 0)
225 op->info.pid = fl->fl_pid;
228 op->info.start = fl->fl_start;
229 op->info.end = fl->fl_end;
230 if (fl->fl_lmops && fl->fl_lmops->fl_grant)
231 op->info.owner = (__u64) fl->fl_pid;
233 op->info.owner = (__u64)(long) fl->fl_owner;
259 struct file_lock *fl)
276 op->info.pid = fl->fl_pid;
277 op->info.ex = (fl->fl_type == F_WRLCK);
280 op->info.start = fl->fl_start;
281 op->info.end = fl->fl_end;
282 if (fl->fl_lmops && fl->fl_lmops->fl_grant)
283 op->info.owner = (__u64) fl->fl_pid;
285 op->info.owner = (__u64)(long) fl->fl_owner;
303 fl->fl_type = F_UNLCK;
307 locks_init_lock(fl);
308 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
309 fl->fl_flags = FL_POSIX;
310 fl->fl_pid = op->info.pid;
311 fl->fl_start = op->info.start;
312 fl->fl_end = op->info.end;