/freebsd/sys/kern/ |
H A D | vfs_cluster.c | 135 if (bp->b_flags & B_CACHE) { in cluster_read() 138 } else if ((bp->b_flags & B_RAM) == 0) { in cluster_read() 141 bp->b_flags &= ~B_RAM; in cluster_read() 149 if (rbp == NULL || (rbp->b_flags & B_INVAL)) in cluster_read() 161 rbp->b_flags |= B_RAM; in cluster_read() 229 bp->b_flags |= B_RAM; in cluster_read() 239 if ((bp->b_flags & B_CLUSTER) == 0) { in cluster_read() 242 bp->b_flags &= ~B_INVAL; in cluster_read() 244 if ((bp->b_flags & B_ASYNC) || bp->b_iodone != NULL) in cluster_read() 279 if (rbp->b_flags & B_DELWRI) { in cluster_read() [all …]
|
H A D | vfs_bio.c | 649 KASSERT((bp->b_flags & B_MALLOC) == 0, in bufspace_adjust() 888 KASSERT((bp->b_flags & B_MALLOC) != 0, in bufmallocadjust() 995 if (bp->b_flags & B_CACHE) { in vfs_buf_test_cache() 998 bp->b_flags &= ~B_CACHE; in vfs_buf_test_cache() 1235 bp->b_flags = B_INVAL; in bufinit() 1391 if (((bp->b_flags & B_INVAL) == 0 && BUF_ISLOCKED(bp)) || in isbufbusy() 1392 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI)) in isbufbusy() 1482 nbusy, bp, bp->b_vp, bp->b_flags, in bufshutdown() 1616 if (bp->b_flags & B_REMFREE) { in binsfree() 1618 bp->b_flags |= B_REUSE; in binsfree() [all …]
|
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | io | 28 this int b_flags; 56 this->b_flags = (int)this->bufinfo.b_flags; 57 this->bio_flags = bio_flag_string[this->b_flags & BIO_ERROR]; 63 append_bio_flag[this->b_flags, BIO_DONE]; 64 append_bio_flag[this->b_flags, BIO_ONQUEUE]; 65 append_bio_flag[this->b_flags, BIO_ORDERED]; 66 append_bio_flag[this->b_flags, BIO_UNMAPPED]; 67 append_bio_flag[this->b_flags, BIO_TRANSIENT_MAPPING]; 68 append_bio_flag[this->b_flags, BIO_VLIST];
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clbio.c | 513 if ((rabp->b_flags & (B_CACHE|B_DELWRI)) == 0) { in ncl_bioread() 514 rabp->b_flags |= B_ASYNC; in ncl_bioread() 518 rabp->b_flags |= B_INVAL; in ncl_bioread() 552 if ((bp->b_flags & B_CACHE) == 0) { in ncl_bioread() 583 if ((bp->b_flags & B_CACHE) == 0) { in ncl_bioread() 615 if ((bp->b_flags & B_CACHE) == 0) { in ncl_bioread() 652 if ((bp->b_flags & B_CACHE) == 0) { in ncl_bioread() 660 if (error == 0 && (bp->b_flags & B_INVAL)) in ncl_bioread() 689 (bp->b_flags & B_INVAL) == 0 && in ncl_bioread() 696 if ((rabp->b_flags in ncl_bioread() [all...] |
H A D | nfs_clsubs.c | 362 (bp->b_flags & (B_DELWRI | B_NEEDCOMMIT)) in ncl_clearcommit() 364 bp->b_flags &= ~(B_NEEDCOMMIT | B_CLUSTEROK); in ncl_clearcommit()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_io.c | 540 uint32_t save = bp->b_flags & B_CACHE; in fuse_write_biobackend() 542 bp->b_flags |= save; in fuse_write_biobackend() 588 bp->b_flags |= B_CACHE; in fuse_write_biobackend() 589 bp->b_flags &= ~B_INVAL; in fuse_write_biobackend() 592 if ((bp->b_flags & B_CACHE) == 0) { in fuse_write_biobackend() 695 bp->b_flags |= B_FUSEFS_WRITE_CACHE; in fuse_write_biobackend() 699 bp->b_flags &= ~B_FUSEFS_WRITE_CACHE; in fuse_write_biobackend() 704 bp->b_flags |= B_CLUSTEROK; in fuse_write_biobackend() 709 bp->b_flags |= B_CLUSTEROK; in fuse_write_biobackend() 720 bp->b_flags |= B_CLUSTEROK; in fuse_write_biobackend() [all …]
|
/freebsd/tools/debugscripts/ |
H A D | gdbinit.kernel | 32 printf " flags 0x%x: ", $bp->b_flags 33 if $bp->b_flags & 0x10 36 if $bp->b_flags & 0x40 39 if $bp->b_flags & 0x200 42 if $bp->b_flags & 0x800 45 if $bp->b_flags & 0x40000 48 if $bp->b_flags & 0x100000 65 output $bp->b_flags 151 printf "\n b_flags " 152 output/x bp->b_flags
|
/freebsd/sys/sys/ |
H A D | buf.h | 116 uint32_t b_flags; /* B_* flags. */ member 322 KASSERT(((bp)->b_flags & B_REMFREE) == 0, \ 450 KASSERT((bp->b_flags & B_IOSTARTED) == 0, in buf_start() 452 bp->b_flags |= B_IOSTARTED; in buf_start() 460 if ((bp->b_flags & B_IOSTARTED) != 0) { in buf_complete() 461 bp->b_flags &= ~B_IOSTARTED; in buf_complete()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_io.c | 377 || (!error && (bp->b_flags & B_NEEDCOMMIT))) { in smbfs_doio() 378 bp->b_flags &= ~(B_INVAL|B_NOCACHE); in smbfs_doio() 379 if ((bp->b_flags & B_ASYNC) == 0) in smbfs_doio() 380 bp->b_flags |= B_EINTR; in smbfs_doio() 381 if ((bp->b_flags & B_PAGING) == 0) { in smbfs_doio() 383 bp->b_flags &= ~B_DONE; in smbfs_doio() 385 if ((bp->b_flags & B_ASYNC) == 0) in smbfs_doio() 386 bp->b_flags |= B_EINTR; in smbfs_doio()
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 283 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 362 nbp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 381 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 453 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 522 bp->b_flags |= B_INVAL | B_RELBUF | B_NOCACHE; in ffs_balloc_ufs1() 523 bp->b_flags &= ~(B_ASYNC | B_CACHE); in ffs_balloc_ufs1() 545 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs1() 904 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs2() 984 nbp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs2() 1003 bp->b_flags |= B_CLUSTEROK; in ffs_balloc_ufs2() [all …]
|
H A D | ffs_vfsops.c | 1219 bp->b_flags |= B_INVAL | B_NOCACHE; in ffs_use_bread() 2078 bp->b_flags |= B_VALIDSUSPWRT; in ffs_use_bwrite() 2102 bp->b_flags |= B_VALIDSUSPWRT; in ffs_use_bwrite() 2181 bp->b_flags |= B_NOCACHE; in ffs_backgroundwritedone() 2182 bp->b_flags &= ~(B_CACHE | B_IOSTARTED); in ffs_backgroundwritedone() 2192 bp->b_flags |= B_INVAL; in ffs_backgroundwritedone() 2228 CTR3(KTR_BUF, "bufwrite(%p) vp %p flags %X", bp, bp->b_vp, bp->b_flags); 2229 if (bp->b_flags & B_INVAL) { 2243 if (bp->b_flags & B_ASYNC) { in ffs_bufwrite() 2266 (bp->b_flags in ffs_bufwrite() [all...] |
H A D | ffs_vnops.c | 339 if ((bp->b_flags & B_DELWRI) == 0) in ffs_syncvnode() 373 if ((bp->b_flags & B_DEFERRED) == 0) { in ffs_syncvnode() 374 bp->b_flags |= B_DEFERRED; in ffs_syncvnode() 386 } else if ((bp->b_flags & B_CLUSTEROK)) { in ffs_syncvnode() 943 bp->b_flags |= B_NOCACHE; in ffs_write() 980 if (error != 0 && (bp->b_flags & B_CACHE) == 0 && in ffs_write() 983 bp->b_flags |= B_INVAL | B_RELBUF | B_NOCACHE; in ffs_write() 1005 bp->b_flags |= B_CLUSTEROK; in ffs_write() 1009 bp->b_flags |= B_CLUSTEROK; in ffs_write() 1016 bp->b_flags |= B_CLUSTEROK; in ffs_write() [all …]
|
H A D | ffs_alloc.c | 345 bp->b_flags |= B_DONE; in ffs_realloccg() 347 if ((bp->b_flags & (B_MALLOC | B_VMIO)) == B_VMIO) in ffs_realloccg() 420 (bp->b_flags & B_DELWRI) != 0 ? in ffs_realloccg() 429 bp->b_flags |= B_DONE; in ffs_realloccg() 431 if ((bp->b_flags & (B_MALLOC | B_VMIO)) == B_VMIO) in ffs_realloccg() 800 (bp->b_flags & B_DELWRI) != 0 ? in ffs_reallocblks_ufs1() 1066 (bp->b_flags & B_DELWRI) != 0 ? in ffs_reallocblks_ufs2() 2337 bp->b_flags |= B_RELBUF | B_NOCACHE; in ffs_blkfree_cg() 2338 bp->b_flags &= ~B_CACHE; in ffs_blkfree_cg() 2886 bp->b_flags |= B_RELBUF | B_NOCACHE; in ffs_freefile() [all …]
|
H A D | ffs_inode.c | 216 bp->b_flags |= B_CLUSTEROK; in ffs_update() 376 bp->b_flags |= B_CLUSTEROK; in ffs_truncate() 506 bp->b_flags |= B_CLUSTEROK; in ffs_truncate() 809 bp->b_flags |= B_INVAL | B_NOCACHE; in ffs_indirtrunc()
|
H A D | ffs_rawread.c | 206 bp->b_flags = 0; /* XXX necessary ? */ in ffs_rawread_readahead() 235 bp->b_flags |= B_DONE; in ffs_rawread_readahead()
|
/freebsd/sys/vm/ |
H A D | vm_pager.c | 469 bp->b_flags = B_MAXPHYS; in pbuf_ctor() 533 bp->b_flags |= B_PAGING; in pbgetvp() 551 bp->b_flags |= B_PAGING; in pbgetbo() 569 bp->b_flags &= ~B_PAGING; in pbrelvp() 585 bp->b_flags &= ~B_PAGING; in pbrelbo()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_inode.c | 153 if ((bp->b_flags & (B_DONE | B_DELWRI)) == 0) { in ext2_indirtrunc() 174 bp->b_flags |= B_INVAL; in ext2_indirtrunc() 272 bp->b_flags |= B_CLUSTEROK; in ext2_ind_truncate() 304 bp->b_flags |= B_CLUSTEROK; in ext2_ind_truncate() 496 bp->b_flags |= B_CLUSTEROK; in ext2_ext_truncate() 527 bp->b_flags |= B_CLUSTEROK; in ext2_ext_truncate()
|
H A D | ext2_balloc.c | 261 bp->b_flags |= B_CLUSTEROK; in ext2_balloc() 293 bp->b_flags |= B_CLUSTEROK; in ext2_balloc()
|
H A D | ext2_bmap.c | 166 if ((bp->b_flags & B_CACHE) == 0) { in readindir() 172 bp->b_flags &= ~B_INVAL; in readindir()
|
/freebsd/sbin/fsck_ffs/ |
H A D | fsck.h | 153 int b_flags; /* B_ flags below */ 226 (bp)->b_flags |= B_DIRTY; \ 232 (bp)->b_flags = 0; \ 157 int b_flags; /* B_ flags below */ global() member
|
H A D | fsutil.c | 356 if ((bp->b_flags & B_DIRTY) == 0 && bp->b_refcnt == 0) in getdatablk() 433 bp->b_flags &= ~B_DIRTY; in binval() 443 if ((bp->b_flags & B_DIRTY) == 0) in flush() 445 bp->b_flags &= ~B_DIRTY; in flush() 527 if ((bp->b_flags & B_DIRTY) != 0) in snapflush() 1404 bp->b_size, bp->b_refcnt, bp->b_flags & B_DIRTY ? "dirty" : "clean", in prtbuf()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | arc.c | 703 #define HDR_IN_HASH_TABLE(hdr) ((hdr)->b_flags & ARC_FLAG_IN_HASH_TABLE) 704 #define HDR_IO_IN_PROGRESS(hdr) ((hdr)->b_flags & ARC_FLAG_IO_IN_PROGRESS) 705 #define HDR_IO_ERROR(hdr) ((hdr)->b_flags & ARC_FLAG_IO_ERROR) 706 #define HDR_PREFETCH(hdr) ((hdr)->b_flags & ARC_FLAG_PREFETCH) 708 ((hdr)->b_flags & ARC_FLAG_PRESCIENT_PREFETCH) 710 ((hdr)->b_flags & ARC_FLAG_COMPRESSED_ARC) 712 #define HDR_L2CACHE(hdr) ((hdr)->b_flags & ARC_FLAG_L2CACHE) 713 #define HDR_UNCACHED(hdr) ((hdr)->b_flags & ARC_FLAG_UNCACHED) 715 (((hdr)->b_flags & ARC_FLAG_IO_IN_PROGRESS) && \ 716 ((hdr)->b_flags & ARC_FLAG_HAS_L2HDR)) [all …]
|
/freebsd/cddl/lib/libdtrace/ |
H A D | io.d | 54 int b_flags; /* flags */ member 69 b_flags = B->bio_flags;
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_bmap.c | 111 if ((bp->b_flags & B_CACHE) == 0) { in readindir() 117 bp->b_flags &= ~B_INVAL; in readindir()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 378 pribp->b_flags |= B_AGE; in iso_mountfs() 440 bp->b_flags |= B_AGE; in iso_mountfs() 492 supbp->b_flags |= B_AGE; in iso_mountfs()
|