Lines Matching defs:brlh
114 struct brl_handle *brlh;
116 brlh = talloc(mem_ctx, struct brl_handle);
117 if (brlh == NULL) {
121 brlh->key = *file_key;
122 brlh->ntvfs = ntvfs;
123 ZERO_STRUCT(brlh->last_lock);
125 return brlh;
231 static NTSTATUS brl_tdb_lock_failed(struct brl_handle *brlh, struct lock_struct *lock)
250 brlh->last_lock = *lock;
261 brlh->last_lock = *lock;
269 if (cluster_id_equal(&lock->context.server, &brlh->last_lock.context.server) &&
270 lock->context.ctx == brlh->last_lock.context.ctx &&
271 lock->ntvfs == brlh->last_lock.ntvfs &&
272 lock->start == brlh->last_lock.start) {
276 brlh->last_lock = *lock;
288 struct brl_handle *brlh,
299 kbuf.dptr = brlh->key.data;
300 kbuf.dsize = brlh->key.length;
315 lock = brlh->last_lock;
316 status = brl_tdb_lock(brl, brlh, smbpid, start, size, rw, NULL);
317 brlh->last_lock = lock;
330 lock.ntvfs = brlh->ntvfs;
343 status = brl_tdb_lock_failed(brlh, &lock);
439 struct brl_handle *brlh,
449 kbuf.dptr = brlh->key.data;
450 kbuf.dsize = brlh->key.length;
473 lock->ntvfs == brlh->ntvfs &&
485 lock->ntvfs == brlh->ntvfs &&
541 struct brl_handle *brlh,
549 kbuf.dptr = brlh->key.data;
550 kbuf.dsize = brlh->key.length;
611 struct brl_handle *brlh,
620 kbuf.dptr = brlh->key.data;
621 kbuf.dsize = brlh->key.length;
631 lock.ntvfs = brlh->ntvfs;
656 struct brl_handle *brlh)
663 kbuf.dptr = brlh->key.data;
664 kbuf.dsize = brlh->key.length;
685 lock->ntvfs == brlh->ntvfs) {