Lines Matching refs:fl

23 	void *fl;
26 int (*callback)(struct file_lock *fl, int result);
104 int cmd, struct file_lock *fl)
122 op->info.pid = fl->fl_pid;
123 op->info.ex = (fl->fl_type == F_WRLCK);
127 op->info.start = fl->fl_start;
128 op->info.end = fl->fl_end;
130 if (fl->fl_lmops && fl->fl_lmops->lm_grant) {
140 op->info.owner = (__u64) fl->fl_pid;
141 op_data->callback = fl->fl_lmops->lm_grant;
143 locks_copy_lock(&op_data->flc, fl);
144 op_data->fl = fl;
153 op->info.owner = (__u64)(long) fl->fl_owner;
182 if (locks_lock_file_wait(file, fl) < 0)
199 struct file_lock *fl;
201 int (*notify)(struct file_lock *fl, int result) = NULL;
215 fl = op_data->fl;
219 notify(fl, op->info.rv);
234 log_print("dlm_plock_callback: vfs lock error %llx file %p fl %p",
235 (unsigned long long)op->info.number, file, fl);
238 rv = notify(fl, 0);
252 struct file_lock *fl)
257 unsigned char fl_flags = fl->fl_flags;
270 fl->fl_flags |= FL_EXISTS;
272 rv = locks_lock_file_wait(file, fl);
283 op->info.pid = fl->fl_pid;
286 op->info.start = fl->fl_start;
287 op->info.end = fl->fl_end;
288 if (fl->fl_lmops && fl->fl_lmops->lm_grant)
289 op->info.owner = (__u64) fl->fl_pid;
291 op->info.owner = (__u64)(long) fl->fl_owner;
293 if (fl->fl_flags & FL_CLOSE) {
320 fl->fl_flags = fl_flags;
326 struct file_lock *fl)
343 op->info.pid = fl->fl_pid;
344 op->info.ex = (fl->fl_type == F_WRLCK);
347 op->info.start = fl->fl_start;
348 op->info.end = fl->fl_end;
349 if (fl->fl_lmops && fl->fl_lmops->lm_grant)
350 op->info.owner = (__u64) fl->fl_pid;
352 op->info.owner = (__u64)(long) fl->fl_owner;
370 fl->fl_type = F_UNLCK;
374 locks_init_lock(fl);
375 fl->fl_type = (op->info.ex) ? F_WRLCK : F_RDLCK;
376 fl->fl_flags = FL_POSIX;
377 fl->fl_pid = op->info.pid;
379 fl->fl_pid = -fl->fl_pid;
380 fl->fl_start = op->info.start;
381 fl->fl_end = op->info.end;