Home
last modified time | relevance | path

Searched refs:b_blkno (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/sys/kern/
H A Dvfs_cluster.c246 bp->b_iooffset = dbtob(bp->b_blkno); in cluster_read()
292 rbp->b_blkno = blkno; in cluster_read()
306 rbp->b_iooffset = dbtob(rbp->b_blkno); in cluster_read()
368 tbp->b_blkno = blkno; in cluster_rbuild()
393 bp->b_blkno = blkno; in cluster_rbuild()
488 if (tbp->b_blkno == tbp->b_lblkno) { in cluster_rbuild()
489 tbp->b_blkno = bn; in cluster_rbuild()
490 } else if (tbp->b_blkno != bn) { in cluster_rbuild()
667 (bp->b_blkno != vnc->v_lasta + btodb(lblocksize))) { in cluster_write()
736 vnc->v_lasta = bp->b_blkno; in cluster_write()
[all …]
H A Dvfs_bio.c1483 (intmax_t)bp->b_blkno, in bufshutdown()
1775 bp->b_blkno = bp->b_lblkno = 0; in buf_alloc()
2210 rabp->b_iooffset = dbtob(rabp->b_blkno); in breada()
2283 bp->b_iooffset = dbtob(bp->b_blkno); in breadn_flags()
2377 bp->b_iooffset = dbtob(bp->b_blkno); in bufwrite()
2500 if (vp->v_type != VCHR && bp->b_lblkno == bp->b_blkno) { in bdwrite()
2501 VOP_BMAP(vp, bp->b_lblkno, NULL, &bp->b_blkno, NULL, NULL); in bdwrite()
3237 if ((bpa->b_blkno != bpa->b_lblkno) && (bpa->b_blkno == blkno)) in vfs_bio_clcheck()
3282 bp->b_blkno + ((i * size) >> DEV_BSHIFT)) == 0) in vfs_bio_awrite()
3287 bp->b_blkno - ((j * size) >> DEV_BSHIFT)) == 0) in vfs_bio_awrite()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_balloc.c148 dbtofsb(fs, bp->b_blkno), dp->di_db[nb], in ffs_balloc_ufs1()
152 dp->di_db[nb] = dbtofsb(fs, bp->b_blkno); in ffs_balloc_ufs1()
185 bp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
200 bp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
211 dbtofsb(fs, bp->b_blkno), nb, in ffs_balloc_ufs1()
226 bp->b_blkno = fsbtodb(fs, newb); in ffs_balloc_ufs1()
233 dp->di_db[lbn] = dbtofsb(fs, bp->b_blkno); in ffs_balloc_ufs1()
274 bp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
354 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
438 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
[all …]
H A Dffs_alloc.c315 if (bp->b_blkno == bp->b_lblkno) { in ffs_realloccg()
318 bp->b_blkno = fsbtodb(fs, bprev); in ffs_realloccg()
336 if (bp->b_blkno != fsbtodb(fs, bno)) in ffs_realloccg()
402 bp->b_blkno = fsbtodb(fs, bno); in ffs_realloccg()
600 dbtofsb(fs, buflist->bs_children[i]->b_blkno), fs->fs_bsize)) in ffs_reallocblks_ufs1()
605 blkno = buflist->bs_children[0]->b_blkno; in ffs_reallocblks_ufs1()
608 if (buflist->bs_children[i]->b_blkno != blkno + (i * ssize)) in ffs_reallocblks_ufs1()
628 if (dtog(fs, dbtofsb(fs, buflist->bs_children[0]->b_blkno)) != in ffs_reallocblks_ufs1()
629 dtog(fs, dbtofsb(fs, buflist->bs_children[len - 1]->b_blkno))) in ffs_reallocblks_ufs1()
722 dbtofsb(fs, buflist->bs_children[i]->b_blkno), fs->fs_bsize)) in ffs_reallocblks_ufs1()
[all …]
H A Dffs_rawread.c215 bp->b_lblkno = bp->b_blkno = blockno; in ffs_rawread_readahead()
238 bp->b_blkno = blkno + blockoff; in ffs_rawread_readahead()
H A Dffs_snapshot.c1164 bp->b_blkno = fsbtodb(fs, blkno); in indiracct_ufs1()
1448 bp->b_blkno = fsbtodb(fs, blkno); in indiracct_ufs2()
1930 (intmax_t)cbp->b_blkno); in ffs_snapblkfree()
2181 lbn = fragstoblks(fs, dbtofsb(fs, bp->b_blkno)); in ffs_bp_snapblk()
2304 lbn = fragstoblks(fs, dbtofsb(fs, bp->b_blkno)); in ffs_copyonwrite()
2418 (intmax_t)bp->b_lblkno, (intmax_t)cbp->b_blkno); in ffs_copyonwrite()
/freebsd/usr.sbin/makefs/ffs/
H A Dbuf.c70 offset = (off_t)(*bpp)->b_blkno * fs->sectorsize + fs->offset; in bread()
73 (long long)(*bpp)->b_blkno, (long long) offset, in bread()
77 (long long)(*bpp)->b_blkno, (long long)offset); in bread()
132 offset = (off_t)bp->b_blkno * fs->sectorsize + fs->offset; in bwrite()
136 (long long)bp->b_blkno, (long long) offset, bytes); in bwrite()
171 (long long)bp->b_lblkno, (long long)bp->b_blkno, in bcleanup()
205 bp->b_blkno = bp->b_lblkno = blkno; in getblk()
H A Dffs_balloc.c192 bp->b_blkno = fsbtodb(fs, newb); in ffs_balloc_ufs1()
231 bp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
274 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
306 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs1()
449 bp->b_blkno = fsbtodb(fs, newb); in ffs_balloc_ufs2()
488 bp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs2()
531 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs2()
563 nbp->b_blkno = fsbtodb(fs, nb); in ffs_balloc_ufs2()
H A Dbuf.h59 daddr_t b_blkno; member
/freebsd/sys/fs/ext2fs/
H A Dext2_balloc.c83 bp->b_blkno = fsbtodb(fs, newblk); in ext2_ext_balloc()
143 bp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
162 bp->b_blkno = fsbtodb(fs, newb); in ext2_balloc()
166 ip->i_db[lbn] = dbtofsb(fs, bp->b_blkno); in ext2_balloc()
197 bp->b_blkno = fsbtodb(fs, newb); in ext2_balloc()
241 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
281 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
316 nbp->b_blkno = fsbtodb(fs, nb); in ext2_balloc()
H A Dext2_bmap.c170 bp->b_blkno = blkptrtodb(ump, daddr); in readindir()
175 bp->b_iooffset = dbtob(bp->b_blkno); in readindir()
H A Dext2_alloc.c252 if (dtog(fs, dbtofsb(fs, buflist->bs_children[0]->b_blkno)) != in ext2_reallocblks()
253 dtog(fs, dbtofsb(fs, buflist->bs_children[len - 1]->b_blkno))) in ext2_reallocblks()
318 if (buflist->bs_children[i]->b_blkno != fsbtodb(fs, *bap)) in ext2_reallocblks()
358 ext2_blkfree(ip, dbtofsb(fs, buflist->bs_children[i]->b_blkno), in ext2_reallocblks()
360 buflist->bs_children[i]->b_blkno = fsbtodb(fs, blkno); in ext2_reallocblks()
H A Dext2_inode.c157 bp->b_blkno = dbn; in ext2_indirtrunc()
159 bp->b_iooffset = dbtob(bp->b_blkno); in ext2_indirtrunc()
H A Dext2_vnops.c1576 if (bp->b_blkno == bp->b_lblkno) { in ext2_strategy()
1582 bp->b_blkno = blkno; in ext2_strategy()
1589 if ((long)bp->b_blkno == -1) in ext2_strategy()
1592 if ((long)bp->b_blkno == -1) { in ext2_strategy()
1596 bp->b_iooffset = dbtob(bp->b_blkno); in ext2_strategy()
/freebsd/sys/fs/cd9660/
H A Dcd9660_lookup.c256 ino = dbtob(bp->b_blkno) in cd9660_lookup()
273 ino = dbtob(bp->b_blkno) + entryoffsetinblock; in cd9660_lookup()
455 if (bp->b_blkno == bp->b_lblkno) { in cd9660_blkatoff()
456 bp->b_blkno = (ip->iso_start + bp->b_lblkno) << (bshift - DEV_BSHIFT); in cd9660_blkatoff()
H A Dcd9660_vnops.c534 idp->current.d_fileno = dbtob(bp->b_blkno) + in cd9660_readdir()
716 if (bp->b_blkno == bp->b_lblkno) { in cd9660_strategy()
717 bp->b_blkno = (ip->iso_start + bp->b_lblkno) << in cd9660_strategy()
720 bp->b_iooffset = dbtob(bp->b_blkno); in cd9660_strategy()
/freebsd/sys/vm/
H A Dvnode_pager.c715 bp->b_blkno = fileaddr; in vnode_pager_input_smlfs()
723 bp->b_iooffset = dbtob(bp->b_blkno); in vnode_pager_input_smlfs()
939 error = VOP_BMAP(vp, foff / bsize, &bo, &bp->b_blkno, &after, &before); in vnode_pager_generic_getpages()
977 if (bp->b_blkno == -1) { in vnode_pager_generic_getpages()
990 blkno0 = bp->b_blkno; in vnode_pager_generic_getpages()
992 bp->b_blkno += (foff % bsize) / DEV_BSIZE; in vnode_pager_generic_getpages()
1050 bp->b_blkno -= IDX_TO_OFF(rbehind) / DEV_BSIZE; in vnode_pager_generic_getpages()
1110 bp->b_iooffset = dbtob(bp->b_blkno); in vnode_pager_generic_getpages()
1112 (blkno0 - bp->b_blkno) * DEV_BSIZE + in vnode_pager_generic_getpages()
1117 (uintmax_t)blkno0, (uintmax_t)bp->b_blkno)); in vnode_pager_generic_getpages()
H A Dswap_pager.c987 if (swp_pager_isondev(bp->b_blkno, sp)) { in swp_pager_strategy()
1397 bp->b_blkno = swp_pager_meta_lookup(blks, pindex - rbehind); in swap_pager_getpages_locked()
1398 KASSERT(bp->b_blkno != SWAPBLK_NONE, in swap_pager_getpages_locked()
1451 bp->b_bufobj, (intmax_t)bp->b_blkno, bp->b_bcount); in swap_pager_getpages_locked()
1614 bp->b_blkno = blk; in swap_pager_putpages()
1696 (long)bp->b_blkno, in swp_pager_async_iodone()
3189 bio->bio_offset = (bp->b_blkno - sp->sw_first) * PAGE_SIZE; in swapgeom_strategy()
3329 bp->b_blkno = ctodb(bp->b_blkno - sp->sw_first); in swapdev_strategy()
3344 bp->b_iooffset = dbtob(bp->b_blkno); in swapdev_strategy()
/freebsd/cddl/lib/libdtrace/
H A Dio.d57 uint64_t b_blkno; /* expanded block # on device */ member
72 b_blkno = 0;
/freebsd/sys/fs/smbfs/
H A Dsmbfs_io.c333 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE; in smbfs_doio()
353 if (((bp->b_blkno * DEV_BSIZE) + bp->b_dirtyend) > np->n_size) in smbfs_doio()
354 bp->b_dirtyend = np->n_size - (bp->b_blkno * DEV_BSIZE); in smbfs_doio()
358 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE + bp->b_dirtyoff; in smbfs_doio()
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c744 if (bp->b_blkno == bp->b_lblkno) { in msdosfs_write()
747 bp->b_blkno = -1; in msdosfs_write()
749 bp->b_blkno = bn; in msdosfs_write()
751 if (bp->b_blkno == -1) { in msdosfs_write()
1896 if (bp->b_blkno == bp->b_lblkno) { in msdosfs_strategy()
1898 bp->b_blkno = blkno; in msdosfs_strategy()
1905 if ((long)bp->b_blkno == -1) in msdosfs_strategy()
1908 if (bp->b_blkno == -1) { in msdosfs_strategy()
1916 bp->b_iooffset = dbtob(bp->b_blkno); in msdosfs_strategy()
H A Dmsdosfs_fat.c1093 bp->b_blkno = -1; in extendfile()
1094 if (bp->b_blkno == -1) in extendfile()
1097 bp->b_blkno = blkno; in extendfile()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clbio.c1141 (long)bp->b_blkno * DEV_BSIZE, in ncl_write()
1315 bp->b_blkno = bn * (vp->v_bufobj.bo_bsize / DEV_BSIZE); in ncl_vinvalbuf()
1587 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE; in ncl_doio()
1659 off = ((u_quad_t)bp->b_blkno) * DEV_BSIZE + bp->b_dirtyoff; in ncl_doio()
1678 if ((off_t)bp->b_blkno * DEV_BSIZE + bp->b_dirtyend > np->n_size) in ncl_doio()
1679 bp->b_dirtyend = np->n_size - (off_t)bp->b_blkno * DEV_BSIZE; in ncl_doio()
1685 uiop->uio_offset = (off_t)bp->b_blkno * DEV_BSIZE in ncl_doio()
/freebsd/sys/ufs/ufs/
H A Dufs_bmap.c115 bp->b_blkno = blkptrtodb(ump, daddr); in readindir()
120 bp->b_iooffset = dbtob(bp->b_blkno); in readindir()
/freebsd/sys/fs/udf/
H A Dudf_vnops.c1030 if (bp->b_blkno == bp->b_lblkno) { in udf_strategy()
1035 bp->b_blkno = -1; in udf_strategy()
1040 bp->b_blkno = sector << (node->udfmp->bshift - DEV_BSHIFT); in udf_strategy()
1043 bp->b_iooffset = dbtob(bp->b_blkno); in udf_strategy()

12