Lines Matching refs:cmp_lock
6822 struct ksmbd_lock *smb_lock = NULL, *cmp_lock, *tmp, *tmp2; in smb2_lock() local
6884 list_for_each_entry(cmp_lock, &lock_list, llist) { in smb2_lock()
6885 if (cmp_lock->fl->fl_start <= flock->fl_start && in smb2_lock()
6886 cmp_lock->fl->fl_end >= flock->fl_end) { in smb2_lock()
6887 if (cmp_lock->fl->fl_type != F_UNLCK && in smb2_lock()
6933 list_for_each_entry_safe(cmp_lock, tmp2, &conn->lock_list, clist) { in smb2_lock()
6934 if (file_inode(cmp_lock->fl->fl_file) != in smb2_lock()
6939 if (cmp_lock->fl->fl_file == smb_lock->fl->fl_file && in smb2_lock()
6940 cmp_lock->start == smb_lock->start && in smb2_lock()
6941 cmp_lock->end == smb_lock->end && in smb2_lock()
6942 !lock_defer_pending(cmp_lock->fl)) { in smb2_lock()
6944 list_del(&cmp_lock->flist); in smb2_lock()
6945 list_del(&cmp_lock->clist); in smb2_lock()
6949 locks_free_lock(cmp_lock->fl); in smb2_lock()
6950 kfree(cmp_lock); in smb2_lock()
6956 if (cmp_lock->fl->fl_file == smb_lock->fl->fl_file) { in smb2_lock()
6960 if (cmp_lock->flags & SMB2_LOCKFLAG_SHARED) in smb2_lock()
6965 if (cmp_lock->zero_len && !smb_lock->zero_len && in smb2_lock()
6966 cmp_lock->start > smb_lock->start && in smb2_lock()
6967 cmp_lock->start < smb_lock->end) { in smb2_lock()
6974 if (smb_lock->zero_len && !cmp_lock->zero_len && in smb2_lock()
6975 smb_lock->start > cmp_lock->start && in smb2_lock()
6976 smb_lock->start < cmp_lock->end) { in smb2_lock()
6983 if (((cmp_lock->start <= smb_lock->start && in smb2_lock()
6984 cmp_lock->end > smb_lock->start) || in smb2_lock()
6985 (cmp_lock->start < smb_lock->end && in smb2_lock()
6986 cmp_lock->end >= smb_lock->end)) && in smb2_lock()
6987 !cmp_lock->zero_len && !smb_lock->zero_len) { in smb2_lock()