Lines Matching refs:b_flags
282 if ( (bp->b_flags & (B_DONE | B_DELWRI)) )
290 if ( (bp->b_flags & B_CACHE) )
298 SET(bp->b_flags, B_INVAL);
304 if (!ISSET(bp->b_flags, B_DELWRI)) {
305 SET(bp->b_flags, B_DELWRI);
310 SET(bp->b_flags, B_DONE);
316 SET(bp->b_flags, B_EINTR);
323 SET(bp->b_flags, B_AGE);
329 if ((bp->b_flags & B_FUA) == B_FUA)
337 SET(bp->b_flags, B_FUA);
350 SET(bp->b_flags, B_ERROR);
352 CLR(bp->b_flags, B_ERROR);
358 SET(bp->b_flags, (flags & BUF_X_WRFLAGS));
364 CLR(bp->b_flags, (flags & BUF_X_WRFLAGS));
370 return ((bp->b_flags & BUF_X_RDFLAGS));
376 CLR(bp->b_flags, (B_READ | B_WRITE | B_ERROR | B_DONE | B_INVAL | B_ASYNC | B_NOCACHE | B_FUA));
377 SET(bp->b_flags, (io_flags & (B_ASYNC | B_READ | B_WRITE | B_NOCACHE)));
470 if ( !(bp->b_flags & B_CALL) )
481 bp->b_flags |= (B_CALL | B_ASYNC);
483 bp->b_flags &= ~B_CALL;
498 bp->b_flags |= B_CLUSTER;
500 bp->b_flags &= ~B_CLUSTER;
518 if (bp->b_flags & B_CLUSTER) {
527 io_bp->b_flags = bp->b_flags & (B_COMMIT_UPL | B_META | B_PAGEIO | B_CLUSTER | B_PHYS | B_RAW | B_ASYNC | B_READ | B_FUA);
532 io_bp->b_flags |= B_CALL;
534 if (bp->b_flags & B_CLUSTER) {
559 bp->b_flags |= B_FILTER;
561 bp->b_flags &= ~B_FILTER;
668 if ( !(bp->b_flags & B_CLUSTER)) {
705 if ( !(bp->b_flags & B_CLUSTER))
716 ((bp->b_flags & (B_PAGEIO | B_READ)) != (B_PAGEIO | B_READ))) {
727 bp->b_flags |= B_AGE;
786 io_direction = bp->b_flags & B_READ;
789 if (bp->b_flags & B_READ)
812 if (!ISSET(bp->b_flags, B_READ))
872 if (bp->b_flags & B_READ)
877 if ( !(bp->b_flags & B_CLUSTER)) {
1075 if ((flags & BUF_SKIP_META) && (bp->b_lblkno < 0 || ISSET(bp->b_flags, B_META)))
1106 SET(bp->b_flags, B_INVAL);
1137 if ((flags & BUF_SKIP_META) && (bp->b_lblkno < 0 || ISSET(bp->b_flags, B_META)))
1168 SET(bp->b_flags, B_INVAL);
1170 if (ISSET(bp->b_flags, B_DELWRI) && (flags & BUF_WRITE_DATA))
1219 bp->b_flags &= ~B_LOCKED;
1419 if (ISSET(bp->b_flags, B_DELWRI))
1436 bp->b_flags = B_INVAL;
1598 if (!ISSET(bp->b_flags, (B_DONE | B_DELWRI))) {
1604 SET(bp->b_flags, B_READ | async);
1734 sync = !ISSET(bp->b_flags, B_ASYNC);
1735 wasdelayed = ISSET(bp->b_flags, B_DELWRI);
1736 CLR(bp->b_flags, (B_READ | B_DONE | B_ERROR | B_DELWRI));
1781 if (!ISSET(bp->b_flags, B_NORELSE)) {
1784 CLR(bp->b_flags, B_NORELSE);
1830 if (!ISSET(bp->b_flags, B_DELWRI)) {
1831 SET(bp->b_flags, B_DELWRI);
1839 if (ISSET(bp->b_flags, B_TAPE)) {
1858 if (!ISSET(bp->b_flags, B_LOCKED) && nbdwrite > ((nbuf_headers/4)*3)) {
1871 SET(bp->b_flags, B_DONE);
1912 SET(bp->b_flags, B_ASYNC);
1959 bp->b_flags, 0);
1970 if (ISSET(bp->b_flags, B_META) && ISSET(bp->b_flags, B_INVAL)) {
1971 if (ISSET(bp->b_flags, B_FILTER)) { /* if necessary, call out */
1975 CLR(bp->b_flags, B_FILTER); /* but note callout done */
1990 if ( !ISSET(bp->b_flags, B_META) && UBCINFOEXISTS(bp->b_vp) && bp->b_bufsize) {
1995 if ( !ISSET(bp->b_flags, B_INVAL)) {
2019 if (bp->b_flags & (B_ERROR | B_INVAL)) {
2020 if (bp->b_flags & (B_READ | B_INVAL))
2027 if (ISSET(bp->b_flags, B_DELWRI | B_WASDIRTY))
2045 if (ISSET(bp->b_flags, (B_LOCKED|B_ERROR)) == (B_LOCKED|B_ERROR))
2046 CLR(bp->b_flags, B_ERROR);
2050 if (ISSET(bp->b_flags, (B_NOCACHE|B_ERROR)))
2051 SET(bp->b_flags, B_INVAL);
2053 if ((bp->b_bufsize <= 0) || ISSET(bp->b_flags, B_INVAL)) {
2059 if (ISSET(bp->b_flags, B_DELWRI))
2062 if (ISSET(bp->b_flags, B_META)) {
2064 if (ISSET(bp->b_flags, B_ZALLOC)) {
2085 CLR(bp->b_flags, (B_META | B_ZALLOC | B_DELWRI | B_LOCKED | B_AGE | B_ASYNC | B_NOCACHE | B_FUA));
2105 if (ISSET(bp->b_flags, B_LOCKED))
2107 else if (ISSET(bp->b_flags, B_META))
2109 else if (ISSET(bp->b_flags, B_AGE))
2115 CLR(bp->b_flags, (B_AGE | B_ASYNC | B_NOCACHE));
2160 (int)bp, (int)bp->b_datap, bp->b_flags, 0, 0);
2198 !ISSET(bp->b_flags, B_INVAL)) {
2285 SET(bp->b_flags, B_CACHE);
2326 SET(bp->b_flags, B_WASDIRTY);
2328 CLR(bp->b_flags, B_WASDIRTY);
2330 CLR(bp->b_flags, (B_DONE | B_CACHE | B_WASDIRTY | B_DELWRI));
2375 SET(bp->b_flags, B_INVAL);
2393 SET(bp->b_flags, B_META);
2463 SET(bp->b_flags, B_CACHE | B_DONE);
2472 SET(bp->b_flags, B_WASDIRTY);
2511 (int)bp, (int)bp->b_datap, bp->b_flags, 3, 0);
2537 SET(bp->b_flags, (B_META|B_INVAL));
2579 if (ISSET(bp->b_flags, B_META)) {
2586 if (ISSET(bp->b_flags, B_ZALLOC)) {
2599 CLR(bp->b_flags, B_ZALLOC);
2625 SET(bp->b_flags, B_ZALLOC);
2732 SET(bp->b_flags, B_HDRALLOC);
2815 if (ISSET(bp->b_flags, B_LOCKED) || ISSET(bp->b_lflags, BL_BUSY))
2816 panic("getnewbuf: bp @ %p is LOCKED or BUSY! (flags 0x%lx)\n", bp, bp->b_flags);
2853 if (ISSET(bp->b_flags, B_DELWRI)) {
2892 if (ISSET(bp->b_flags, B_META)) {
2898 if (ISSET(bp->b_flags, B_ZALLOC)) {
2924 bp->b_flags = (bp->b_flags & B_HDRALLOC);
2980 SET(bp->b_flags, B_INVAL);
3046 if (ISSET(bp->b_flags, B_LOCKED)) {
3093 while (!ISSET(bp->b_flags, B_DONE))
3100 if (ISSET(bp->b_flags, B_EINTR)) {
3101 CLR(bp->b_flags, B_EINTR);
3103 } else if (ISSET(bp->b_flags, B_ERROR))
3148 (int)bp, (int)bp->b_datap, bp->b_flags, 0, 0);
3150 if (ISSET(bp->b_flags, B_DONE))
3153 if (ISSET(bp->b_flags, B_ERROR)) {
3157 if (bp->b_vp && bp->b_vp->v_mount && (bp->b_flags & B_READ) == 0) {
3164 if (bp->b_flags & B_READ)
3166 if (bp->b_flags & B_ASYNC)
3169 if (bp->b_flags & B_META)
3171 else if (bp->b_flags & B_PAGEIO)
3179 ((bp->b_flags & (B_PAGEIO | B_READ)) == (B_PAGEIO | B_READ)) &&
3188 CLR(bp->b_flags, B_WASDIRTY);
3191 if (!ISSET(bp->b_flags, B_READ) && !ISSET(bp->b_flags, B_RAW))
3199 if (ISSET(bp->b_flags, (B_CALL | B_FILTER))) { /* if necessary, call out */
3202 int callout = ISSET(bp->b_flags, B_CALL);
3204 CLR(bp->b_flags, (B_CALL | B_FILTER)); /* filters and callouts are one-shot */
3212 SET(bp->b_flags, B_DONE); /* note that it's done */
3251 if (ISSET(bp->b_flags, B_ASYNC)) { /* if async, release it */
3252 SET(bp->b_flags, B_DONE); /* note that it's done */
3273 SET(bp->b_flags, B_DONE); /* note that it's done */
3281 (int)bp, (int)bp->b_datap, bp->b_flags, 0, 0);
3314 if (!ISSET(bp->b_flags, B_INVAL) && ISSET(bp->b_lflags, BL_BUSY))
3394 bp->b_flags = 0;
3427 bp->b_flags = B_INVAL;
3595 SET(bp->b_flags, B_INVAL);
3651 if (ISSET(bp->b_flags, B_DELWRI) && !ISSET(bp->b_lflags, BL_BUSY)) {
3969 SET(bp->b_flags, B_INVAL);