Lines Matching refs:fl
26 void *fl;
29 int (*callback)(struct file_lock *fl, int result);
123 int cmd, struct file_lock *fl)
141 op->info.pid = fl->fl_pid;
142 op->info.ex = (fl->fl_type == F_WRLCK);
146 op->info.start = fl->fl_start;
147 op->info.end = fl->fl_end;
149 if (fl->fl_lmops && fl->fl_lmops->lm_grant) {
159 op->info.owner = (__u64) fl->fl_pid;
160 op_data->callback = fl->fl_lmops->lm_grant;
162 locks_copy_lock(&op_data->flc, fl);
163 op_data->fl = fl;
172 op->info.owner = (__u64)(long) fl->fl_owner;
229 if (locks_lock_file_wait(file, fl) < 0)
246 struct file_lock *fl;
248 int (*notify)(struct file_lock *fl, int result) = NULL;
256 fl = op_data->fl;
260 notify(fl, op->info.rv);
275 log_print("dlm_plock_callback: vfs lock error %llx file %p fl %p",
276 (unsigned long long)op->info.number, file, fl);
279 rv = notify(fl, 0);
293 struct file_lock *fl)
298 unsigned char fl_flags = fl->fl_flags;
311 fl->fl_flags |= FL_EXISTS;
313 rv = locks_lock_file_wait(file, fl);
324 op->info.pid = fl->fl_pid;
327 op->info.start = fl->fl_start;
328 op->info.end = fl->fl_end;
329 if (fl->fl_lmops && fl->fl_lmops->lm_grant)
330 op->info.owner = (__u64) fl->fl_pid;
332 op->info.owner = (__u64)(long) fl->fl_owner;
334 if (fl->fl_flags & FL_CLOSE) {
355 fl->fl_flags = fl_flags;
367 struct file_lock *fl)
377 if (WARN_ON_ONCE(!fl->fl_lmops || !fl->fl_lmops->lm_grant))
385 info.pid = fl->fl_pid;
386 info.ex = (fl->fl_type == F_WRLCK);
390 info.start = fl->fl_start;
391 info.end = fl->fl_end;
392 info.owner = (__u64)fl->fl_pid;
411 op->data->callback(op->data->fl, -EINTR);
419 rv = dlm_posix_unlock(lockspace, number, file, fl);
430 struct file_lock *fl)
447 op->info.pid = fl->fl_pid;
448 op->info.ex = (fl->fl_type == F_WRLCK);
451 op->info.start = fl->fl_start;
452 op->info.end = fl->fl_end;
453 if (fl->fl_lmops && fl->fl_lmops->lm_grant)
454 op->info.owner = (__u64) fl->fl_pid;
456 op->info.owner = (__u64)(long) fl->fl_owner;
468 fl->fl_type = F_UNLCK;
472 locks_init_lock(fl);
473 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
474 fl->fl_flags = FL_POSIX;
475 fl->fl_pid = op->info.pid;
477 fl->fl_pid = -fl->fl_pid;
478 fl->fl_start = op->info.start;
479 fl->fl_end = op->info.end;