Lines Matching refs:lck2
139 see if lck1 and lck2 overlap
141 lck1 is the existing lock. lck2 is the new lock we are
145 struct lock_struct *lck2)
150 lck1->start == lck2->start &&
151 lck1->size == lck2->size) {
155 if (lck1->start >= (lck2->start+lck2->size) ||
156 lck2->start >= (lck1->start+lck1->size)) {
175 struct lock_struct *lck2)
179 lck2->lock_type >= PENDING_READ_LOCK) {
183 if (lck1->lock_type == READ_LOCK && lck2->lock_type == READ_LOCK) {
187 if (brl_tdb_same_context(&lck1->context, &lck2->context) &&
188 lck2->lock_type == READ_LOCK && lck1->ntvfs == lck2->ntvfs) {
192 return brl_tdb_overlap(lck1, lck2);
200 static bool brl_tdb_conflict_other(struct lock_struct *lck1, struct lock_struct *lck2)
204 lck2->lock_type >= PENDING_READ_LOCK) {
208 if (lck1->lock_type == READ_LOCK && lck2->lock_type == READ_LOCK)
216 if (brl_tdb_same_context(&lck1->context, &lck2->context) &&
217 lck1->ntvfs == lck2->ntvfs &&
218 (lck2->lock_type == READ_LOCK || lck1->lock_type == WRITE_LOCK)) {
222 return brl_tdb_overlap(lck1, lck2);