Lines Matching full:aux

358 	struct buffer_aux *aux = dm_bufio_get_aux_data(buf);  in dm_block_manager_alloc_callback()  local
360 aux->validator = NULL; in dm_block_manager_alloc_callback()
361 bl_init(&aux->lock); in dm_block_manager_alloc_callback()
366 struct buffer_aux *aux = dm_bufio_get_aux_data(buf); in dm_block_manager_write_callback() local
368 if (aux->validator) { in dm_block_manager_write_callback()
369 aux->validator->prepare_for_write(aux->validator, (struct dm_block *) buf, in dm_block_manager_write_callback()
443 struct buffer_aux *aux, in dm_bm_validate_buffer() argument
446 if (unlikely(!aux->validator)) { in dm_bm_validate_buffer()
457 aux->validator = v; in dm_bm_validate_buffer()
459 if (unlikely(aux->validator != v)) { in dm_bm_validate_buffer()
461 aux->validator->name, v ? v->name : "NULL", in dm_bm_validate_buffer()
473 struct buffer_aux *aux; in dm_bm_read_lock() local
481 aux = dm_bufio_get_aux_data(to_buffer(*result)); in dm_bm_read_lock()
482 r = bl_down_read(&aux->lock); in dm_bm_read_lock()
489 aux->write_locked = 0; in dm_bm_read_lock()
491 r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v); in dm_bm_read_lock()
493 bl_up_read(&aux->lock); in dm_bm_read_lock()
506 struct buffer_aux *aux; in dm_bm_write_lock() local
517 aux = dm_bufio_get_aux_data(to_buffer(*result)); in dm_bm_write_lock()
518 r = bl_down_write(&aux->lock); in dm_bm_write_lock()
525 aux->write_locked = 1; in dm_bm_write_lock()
527 r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v); in dm_bm_write_lock()
529 bl_up_write(&aux->lock); in dm_bm_write_lock()
542 struct buffer_aux *aux; in dm_bm_read_try_lock() local
552 aux = dm_bufio_get_aux_data(to_buffer(*result)); in dm_bm_read_try_lock()
553 r = bl_down_read_nonblock(&aux->lock); in dm_bm_read_try_lock()
559 aux->write_locked = 0; in dm_bm_read_try_lock()
561 r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v); in dm_bm_read_try_lock()
563 bl_up_read(&aux->lock); in dm_bm_read_try_lock()
576 struct buffer_aux *aux; in dm_bm_write_lock_zero() local
588 aux = dm_bufio_get_aux_data(to_buffer(*result)); in dm_bm_write_lock_zero()
589 r = bl_down_write(&aux->lock); in dm_bm_write_lock_zero()
595 aux->write_locked = 1; in dm_bm_write_lock_zero()
596 aux->validator = v; in dm_bm_write_lock_zero()
604 struct buffer_aux *aux = dm_bufio_get_aux_data(to_buffer(b)); in dm_bm_unlock() local
606 if (aux->write_locked) { in dm_bm_unlock()
608 bl_up_write(&aux->lock); in dm_bm_unlock()
610 bl_up_read(&aux->lock); in dm_bm_unlock()