Lines Matching refs:new_fl
613 struct file_lock *new_fl = NULL;
625 new_fl = locks_alloc_lock();
626 if (new_fl == NULL)
677 locks_copy_lock(new_fl, request);
678 locks_insert_lock(before, new_fl);
679 new_fl = NULL;
684 if (new_fl)
685 locks_free_lock(new_fl);
692 struct file_lock *new_fl = NULL;
708 new_fl = locks_alloc_lock();
854 if (!new_fl) {
858 locks_copy_lock(new_fl, request);
859 locks_insert_lock(before, new_fl);
860 new_fl = NULL;
884 if (new_fl)
885 locks_free_lock(new_fl);
1067 struct file_lock *new_fl, *flock;
1073 new_fl = lease_alloc(NULL, want_write ? F_WRLCK : F_RDLCK);
1101 if (IS_ERR(new_fl) && !i_have_this_lease
1103 error = PTR_ERR(new_fl);
1135 locks_insert_block(flock, new_fl);
1136 error = wait_event_interruptible_timeout(new_fl->fl_wait,
1137 !new_fl->fl_next, break_time);
1138 __locks_delete_block(new_fl);
1153 if (!IS_ERR(new_fl))
1154 locks_free_lock(new_fl);
1212 struct file_lock *new_fl = NULL;
1233 new_fl = locks_alloc_lock();
1234 if (new_fl == NULL)
1289 locks_copy_lock(new_fl, lease);
1290 locks_insert_lock(before, new_fl);
1292 *flp = new_fl;
1296 if (new_fl != NULL)
1297 locks_free_lock(new_fl);