Lines Matching refs:flock
323 struct file_lock *flock; in check_lock_range() local
331 list_for_each_entry(flock, &ctx->flc_posix, fl_list) { in check_lock_range()
333 if (flock->fl_end >= start && end >= flock->fl_start) { in check_lock_range()
334 if (flock->fl_type == F_RDLCK) { in check_lock_range()
340 } else if (flock->fl_type == F_WRLCK) { in check_lock_range()
342 if (flock->fl_file != filp) { in check_lock_range()
1800 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock) in ksmbd_vfs_posix_lock_wait() argument
1802 wait_event(flock->fl_wait, !flock->fl_blocker); in ksmbd_vfs_posix_lock_wait()
1805 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout) in ksmbd_vfs_posix_lock_wait_timeout() argument
1807 return wait_event_interruptible_timeout(flock->fl_wait, in ksmbd_vfs_posix_lock_wait_timeout()
1808 !flock->fl_blocker, in ksmbd_vfs_posix_lock_wait_timeout()
1812 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock) in ksmbd_vfs_posix_lock_unblock() argument
1814 locks_delete_block(flock); in ksmbd_vfs_posix_lock_unblock()