Lines Matching defs:fl
7054 struct file_lock *fl;
7056 fl = locks_alloc_lock();
7057 if (!fl)
7060 locks_init_lock(fl);
7062 fl->c.flc_owner = f;
7063 fl->c.flc_pid = current->tgid;
7064 fl->c.flc_file = f;
7065 fl->c.flc_flags = FL_POSIX;
7066 fl->fl_ops = NULL;
7067 fl->fl_lmops = NULL;
7070 return fl;
7124 lock->fl = flock;
7146 static inline bool lock_defer_pending(struct file_lock *fl)
7149 return waitqueue_active(&fl->c.flc_wait);
7238 if (cmp_lock->fl->fl_start <= flock->fl_start &&
7239 cmp_lock->fl->fl_end >= flock->fl_end) {
7240 if (cmp_lock->fl->c.flc_type != F_UNLCK &&
7289 if (file_inode(cmp_lock->fl->c.flc_file) !=
7290 file_inode(smb_lock->fl->c.flc_file))
7293 if (lock_is_unlock(smb_lock->fl)) {
7294 if (cmp_lock->fl->c.flc_file == smb_lock->fl->c.flc_file &&
7297 !lock_defer_pending(cmp_lock->fl)) {
7304 locks_free_lock(cmp_lock->fl);
7311 if (cmp_lock->fl->c.flc_file == smb_lock->fl->c.flc_file) {
7353 if (lock_is_unlock(smb_lock->fl) && nolock) {
7365 flock = smb_lock->fl;
7468 locks_free_lock(smb_lock->fl);
7492 locks_free_lock(smb_lock->fl);