• Home
  • Raw
  • Download

Lines Matching refs:fl

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