B_LOCKED
if (bp->b_flags & B_LOCKED) {
bp->b_flags &= ~(B_READ | B_DONE | B_DELWRI | B_LOCKED);
if (bp->b_flags & B_LOCKED) {
bp->b_flags |= B_DELWRI | B_LOCKED;
B_LOCKED);
if (ISSET(bp->b_flags, B_LOCKED))
!ISSET(bp->b_flags, B_LOCKED) && bp->b_error == 0) {
if (ISSET(bp->b_flags, B_LOCKED)) {
if (ISSET(bp->b_flags, B_LOCKED)) {
if (ISSET(bp->b_flags, B_LOCKED)) {
if (bp->b_flags & B_LOCKED) {
bp->b_flags |= B_LOCKED;
KASSERT(bp->b_flags & B_LOCKED);
bp->b_flags &= ~B_LOCKED;
if (bp->b_flags & B_LOCKED) {
KDASSERT(!(bp->b_flags & B_LOCKED));
KASSERT(bp->b_flags & B_LOCKED);
KASSERT(bp->b_flags & B_LOCKED);
if (((bp)->b_flags & B_LOCKED) == 0 && bp->b_iodone == NULL) { \
(bp)->b_flags |= B_LOCKED; \
if (((bp)->b_flags & B_LOCKED) != 0 && bp->b_iodone == NULL) { \
(bp)->b_flags &= ~B_LOCKED; \
if (((*bpp)->b_flags & B_LOCKED) != 0 &&
KASSERT((bp->b_flags & B_LOCKED) || !(bp->b_oflags & BO_DELWRI));
if ((bp->b_flags & B_LOCKED) == 0) {
if ((bp->b_flags & B_LOCKED) != 0 && bp->b_iodone == NULL) {
KASSERT((bp->b_flags & B_LOCKED) || (bp->b_cflags & (BC_NOCACHE | BC_INVAL)));
(bp->b_flags & B_LOCKED) == 0 ||
if (!(bp->b_flags & B_LOCKED)) {
KASSERT((tbp->b_flags & B_LOCKED) ||
if ((tbp->b_flags & B_LOCKED) && !(tbp->b_oflags & BO_DELWRI))