/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/ |
H A D | ffs_balloc.c | 100 register ufs_daddr_t lbn, 123 if (lbn < 0) 138 if (nb < NDADDR && nb < lbn) { 178 if (lbn < NDADDR) { 179 nb = ip->i_db[lbn]; 180 if (nb != 0 && ip->i_size >= (lbn + 1) * fs->fs_bsize) { 182 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), fs->fs_bsize, NOCRED, &bp); 199 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), osize, NOCRED, &bp); 213 error = ffs_realloccg(ip, lbn, 214 ffs_blkpref(ip, lbn, (in 98 ffs_balloc( register struct inode *ip, register ufs_daddr_t lbn, int size, kauth_cred_t cred, struct buf **bpp, int flags, int * blk_alloc) argument 466 ffs_blkalloc( struct inode *ip, ufs_daddr_t lbn, int size, kauth_cred_t cred, int flags) argument [all...] |
H A D | ffs_subr.c | 99 ufs_daddr_t lbn; local 108 lbn = lblkno(fs, offset); 109 bsize = blksize(fs, ip, lbn); 112 if (error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), bsize, NOCRED, &bp)) {
|
H A D | ffs_inode.c | 186 ufs_daddr_t bn, lbn, lastiblock[NIADDR], indir_lbn[NIADDR]; local 238 lbn = lblkno(fs, length - 1); 242 if (error = ffs_balloc(oip, lbn, offset + 1, cred, &bp, aflags, 0)) 279 lbn = lblkno(fs, length); 283 if (error = ffs_balloc(oip, lbn, offset, cred, &bp, aflags, 0)) 286 size = blksize(fs, oip, lbn); 452 ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp) 454 ufs_daddr_t lbn, lastbn; 508 bp = buf_getblk(vp, (daddr64_t)((unsigned)lbn), (int)fs->fs_bsize, 0, 0, BLK_META); 512 trace(TR_BREADHIT, pack(vp, fs->fs_bsize), lbn); [all...] |
H A D | fs.h | 113 * information in the inode, using the ``blksize(fs, ip, lbn)'' macro. 528 #define blksize(fs, ip, lbn) \ 529 (((lbn) >= NDADDR || (ip)->i_size >= ((lbn) + 1) << (fs)->fs_bshift) \ 532 #define dblksize(fs, dip, lbn) \ 533 (((lbn) >= NDADDR || (dip)->di_size >= ((lbn) + 1) << (fs)->fs_bshift) \
|
H A D | ffs_alloc.c | 124 ffs_alloc(ip, lbn, bpref, size, cred, bnp) 126 ufs_daddr_t lbn, bpref; 580 ffs_blkpref(ip, lbn, indx, bap) 582 ufs_daddr_t lbn; 612 if (lbn < NDADDR) { 626 ino_to_cg(fs, ip->i_number) + lbn / fs->fs_maxbpg;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/ |
H A D | ufs_readwrite.c | 96 ufs_daddr_t lbn, nextlbn; local 137 lbn = lblkno(fs, uio->uio_offset); 138 nextlbn = lbn + 1; 139 size = BLKSIZE(fs, ip, lbn); 149 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), size, NOCRED, &bp); 150 else if (lbn - 1 == ip->i_lastr && !(vp->v_flag & VRAOFF)) { 152 error = (int)buf_breadn(vp, (daddr64_t)((unsigned)lbn), 155 error = (int)buf_bread(vp, lbn, size, NOCRED, &bp); 158 ip->i_lastr = lbn; 228 ufs_daddr_t lbn; local 568 daddr_t lbn; local [all...] |
H A D | ufs_bmap.c | 367 ufs_daddr_t lbn; local 389 lbn = (ufs_daddr_t)lblkno(fs, ap->a_foffset); 391 lblk_offset = (int)(ap->a_foffset - lblktosize(fs, lbn)); 393 if ((error = ufs_bmaparray(vp, lbn, &daddr, NULL, NULL, &nblks))) 399 if (lbn < 0) { 412 * just return the size of the lbn we started with 414 retsize = blksize(fs, ip, lbn); 427 retsize += blksize(fs, ip, (lbn + nblks));
|
/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/ |
H A D | cd9660_lookup.c | 444 daddr_t lbn; local 449 lbn = lblkno(imp, offset); 450 bsize = blksize(imp, ip, lbn); 457 if ( (error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), bsize, NOCRED, &bp)) ) {
|
H A D | cd9660_vfsops.c | 993 int lbn; local 1014 lbn = lblkno(imp, ip->i_number); 1015 if (lbn < imp->video_dir_start || lbn >= imp->video_dir_end) 1116 int lbn, off; local 1118 lbn = lblkno(imp, ino); 1120 if (lbn >= imp->volume_space_size) { 1121 printf("fhtovp: lbn exceed volume space %d\n", lbn); 1134 error = (int)buf_bread(imp->im_devvp, (daddr64_t)((unsigned)lbn), 1167 daddr64_t lbn; local 1267 daddr64_t lbn; local [all...] |
H A D | cd9660_vnops.c | 192 daddr_t lbn; local 253 lbn = lblkno(imp, uio->uio_offset); 262 size = blksize(imp, ip, lbn); 263 rablock = (daddr64_t)lbn + 1; 265 if (ip->i_lastr + 1 == lbn && 268 error = (int)buf_breadn(vp, (daddr64_t)((unsigned)lbn), size, &rablock, 271 error = (int)buf_bread(vp, (daddr64_t)((unsigned)lbn), size, NOCRED, &bp); 273 ip->i_lastr = lbn;
|
H A D | iso.h | 304 #define blksize(imp, ip, lbn) ((imp)->logical_block_size)
|
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_bio.c | 101 #define NFSBUFHASH(np, lbn) \ 102 (&nfsbufhashtbl[((long)(np) / sizeof(*(np)) + (int)(lbn)) & nfsbufhash]) 1810 daddr64_t lbn, rabn = 0, lastrabn, maxrabn = -1, tlbn; local 1968 lbn = uio->uio_offset / biosize; 1995 if (lbn != (uio->uio_offset / biosize)) { 1996 OSAddAtomic((uio->uio_offset / biosize) - lbn, (SInt32*)&nfsstats.biocache_reads); 2001 lbn = uio->uio_offset / biosize; 2006 if (rabn < lbn) 2007 rabn = lbn; 2008 lastrabn = MIN(maxrabn, lbn [all...] |
H A D | nfs_vnops.c | 1885 daddr64_t lbn; local 1980 lbn = uio->uio_offset / biosize; 1991 error = nfs_buf_get(np, lbn, biosize, thd, NBLK_WRITE, &bp); 2081 if (eofoff && (eofbn < lbn) && 2087 if ((lbn == eofbn) && ISSET(bp->nb_flags, NB_CACHE)) { 5869 daddr64_t lbn; local 5913 lbn = (daddr64_t)(off / biosize); 5915 if ((bp = nfs_buf_incore(np, lbn))) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_descrip.c | 594 daddr64_t lbn, bn; local 1145 error = VNOP_OFFTOBLK(vp, fp->f_offset, &lbn); 1150 error = VNOP_BLKTOOFF(vp, lbn, &offset);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | vfs_bio.c | 141 #define BUFHASH(dvp, lbn) \ 142 (&bufhashtbl[((long)(dvp) / sizeof(*(dvp)) + (int)(lbn)) & bufhash])
|