/freebsd-9.3-release/sys/gnu/fs/xfs/ |
H A D | xfs_alloc_btree.h | 35 #define XFS_ABTB_MAGIC 0x41425442 /* 'ABTB' for bno tree */ 117 extern int xfs_alloc_get_rec(struct xfs_btree_cur *cur, xfs_agblock_t *bno, 133 * Lookup the record equal to [bno, len] in the btree given by cur. 135 extern int xfs_alloc_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 139 * Lookup the first record greater than or equal to [bno, len] 142 extern int xfs_alloc_lookup_ge(struct xfs_btree_cur *cur, xfs_agblock_t bno, 146 * Lookup the first record less than or equal to [bno, len] 149 extern int xfs_alloc_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 153 * Update the record referred to by cur, to the value given by [bno, len]. 156 extern int xfs_alloc_update(struct xfs_btree_cur *cur, xfs_agblock_t bno, [all...] |
H A D | xfs_itable.h | 31 xfs_daddr_t bno, 79 xfs_daddr_t bno,
|
H A D | xfs_alloc.h | 146 xfs_agblock_t bno); /* block being freed */ 172 xfs_fsblock_t bno, /* starting block number of extent */ 178 xfs_agblock_t bno,
|
H A D | xfs_da_btree.h | 84 #define XFS_DA_MAKE_BNOENTRY(mp,bno,entry) \ 85 (((bno) << (mp)->m_dircook_elog) | (entry)) 86 #define XFS_DA_MAKE_COOKIE(mp,bno,entry,hash) \ 87 (((xfs_off_t)XFS_DA_MAKE_BNOENTRY(mp, bno, entry) << 32) | (hash)) 245 xfs_dablk_t bno, xfs_daddr_t mappedbno, 248 xfs_dablk_t bno, xfs_daddr_t mappedbno, 251 xfs_dablk_t bno, int whichfork);
|
H A D | xfs_bmap.h | 171 xfs_fsblock_t bno, /* fs block number of extent */ 269 * File range is given by the bno/len pair. 284 xfs_fileoff_t bno, /* starting file offs. mapped */ 309 xfs_fileoff_t bno); /* starting file offs. mapped */ 321 xfs_fileoff_t bno, /* starting offset to unmap */ 374 * Search the extent records for the entry containing block bno. 375 * If bno lies in a hole, point to the next entry. If bno lies
|
H A D | xfs_dir_leaf.h | 130 #define XFS_PUT_COOKIE(c,mp,bno,entry,hash) \ 131 ((c).s.be = XFS_DA_MAKE_BNOENTRY(mp, bno, entry), (c).s.h = (hash)) 204 xfs_dablk_t bno, struct uio *uio,
|
H A D | xfs_rtalloc.h | 88 xfs_rtblock_t bno, /* starting block number to allocate */ 104 xfs_rtblock_t bno, /* starting block number to free */
|
H A D | xfs_alloc.c | 53 xfs_agblock_t bno, 107 xfs_agblock_t bno; local 112 bno = roundup(foundbno, alignment); 113 diff = bno - foundbno; 116 bno = foundbno; 119 *resbno = bno; 543 * Type and bno are used to determine where in the allocation group the 624 * Allocate a variable extent at exactly agno/bno. 627 * Return the starting a.g. block (bno), or NULLAGBLOCK if we can't do it. 655 * Lookup bno an 1509 xfs_free_ag_extent( xfs_trans_t *tp, xfs_buf_t *agbp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, int isfl) argument 1823 xfs_agblock_t bno; /* freelist block */ local 1982 xfs_agblock_t bno; /* block number returned */ local 2088 xfs_alloc_put_freelist( xfs_trans_t *tp, xfs_buf_t *agbp, xfs_buf_t *agflbp, xfs_agblock_t bno) argument 2424 xfs_free_extent( xfs_trans_t *tp, xfs_fsblock_t bno, xfs_extlen_t len) argument 2471 xfs_alloc_mark_busy(xfs_trans_t *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len) argument 2546 xfs_alloc_search_busy(xfs_trans_t *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len) argument [all...] |
H A D | xfs_dir2.c | 516 xfs_fileoff_t bno; /* directory offset of new block */ local 536 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); 541 if ((error = xfs_bmap_first_unused(tp, dp, count, &bno, XFS_DATA_FORK))) { 549 if ((error = xfs_bmapi(tp, dp, bno, count, 577 for (b = bno, mapi = 0; b < bno + count; ) { 584 c = (int)(bno + count - b); 618 if (got != count || mapp[0].br_startoff != bno || 620 bno + count) { 630 *dbp = XFS_DIR2_DA_TO_DB(mp, (xfs_dablk_t)bno); 782 xfs_fileoff_t bno; /* directory file offset */ local [all...] |
H A D | xfs_bmap.c | 257 * Search the extents list for the inode, for the extent containing bno. 258 * If bno lies in a hole, point to the next entry. If bno lies past eof, 266 xfs_fileoff_t bno, /* block number searched for */ 374 xfs_fileoff_t bno, 381 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap) 388 xfs_fileoff_t bno, 393 #define xfs_bunmap_trace(ip, bno, len, flags, ra) 2868 * First try an exact bno allocation. 2869 * If it fails then do a near or start bno 3109 xfs_fsblock_t bno; local 3653 xfs_bmap_search_multi_extents( xfs_ifork_t *ifp, xfs_fileoff_t bno, int *eofp, xfs_extnum_t *lastxp, xfs_bmbt_irec_t *gotp, xfs_bmbt_irec_t *prevp) argument 3704 xfs_bmap_search_extents( xfs_inode_t *ip, xfs_fileoff_t bno, int whichfork, int *eofp, xfs_extnum_t *lastxp, xfs_bmbt_irec_t *gotp, xfs_bmbt_irec_t *prevp) argument 3921 xfs_bunmap_trace( xfs_inode_t *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, inst_t *ra) argument 4100 xfs_bmap_add_free( xfs_fsblock_t bno, xfs_filblks_t len, xfs_bmap_free_t *flist, xfs_mount_t *mp) argument 4364 xfs_fileoff_t bno; /* input file offset */ local 4485 xfs_fsblock_t bno; /* block # of "block" */ local 4654 xfs_bmap_validate_ret( xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_bmbt_irec_t *mval, int nmap, int ret_nmap) argument 4705 xfs_bmapi( xfs_trans_t *tp, xfs_inode_t *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_fsblock_t *firstblock, xfs_extlen_t total, xfs_bmbt_irec_t *mval, int *nmap, xfs_bmap_free_t *flist, xfs_extdelta_t *delta) argument 5313 xfs_bmapi_single( xfs_trans_t *tp, xfs_inode_t *ip, int whichfork, xfs_fsblock_t *fsb, xfs_fileoff_t bno) argument 5365 xfs_bunmapi( xfs_trans_t *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_extnum_t nexts, xfs_fsblock_t *firstblock, xfs_bmap_free_t *flist, xfs_extdelta_t *delta, int *done) argument 6089 xfs_bmap_get_bp( xfs_btree_cur_t *cur, xfs_fsblock_t bno) argument 6219 xfs_fsblock_t bno; /* block # of "block" */ local 6384 xfs_fsblock_t bno; /* block # of "block" */ local 6442 xfs_fsblock_t bno = blockno; local [all...] |
H A D | xfs_ialloc.h | 113 * Return the location of the inode in bno/len/off, 121 xfs_fsblock_t *bno, /* output: block containing inode */
|
H A D | xfs_rtalloc.c | 99 xfs_fileoff_t bno; /* block number in file */ local 107 xfs_fsblock_t fsbno; /* filesystem block for bno */ 161 for (bno = map.br_startoff, fsbno = map.br_startblock; 162 bno < map.br_startoff + map.br_blockcount; 163 bno++, fsbno++) { 320 * bno. If we don't get maxlen then use prod to trim the length, if given. 328 xfs_rtblock_t bno, /* starting block number to allocate */ 346 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); 354 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); 359 *rtblock = bno; 325 xfs_rtallocate_extent_exact( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 404 xfs_rtallocate_extent_near( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_buf_t **rbpp, xfs_fsblock_t *rsb, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 905 xfs_rtcheck_alloc_range( xfs_mount_t *mp, xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t len, int *stat) argument 2124 xfs_rtallocate_extent( xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t minlen, xfs_extlen_t maxlen, xfs_extlen_t *len, xfs_alloctype_t type, int wasdel, xfs_extlen_t prod, xfs_rtblock_t *rtblock) argument 2209 xfs_rtfree_extent( xfs_trans_t *tp, xfs_rtblock_t bno, xfs_extlen_t len) argument [all...] |
H A D | xfs_dir.c | 885 xfs_dablk_t bno, nextbno; local 897 bno = XFS_DA_COOKIE_BNO(mp, uio->uio_offset); 910 if (bno > 0) { 911 error = xfs_da_read_buf(trans, dp, bno, -2, &bp, XFS_DATA_FORK); 918 dp, uio, bno); 924 dp, uio, bno); 931 dp, uio, bno); 944 bno = 0; 946 error = xfs_da_read_buf(trans, dp, bno, -1, &bp, 959 bno 1104 xfs_dir_trace_g_dub(char *where, xfs_inode_t *dp, uio_t *uio, xfs_dablk_t bno) argument [all...] |
H A D | xfs_da_btree.c | 1618 xfs_fileoff_t bno, b; local 1635 bno = mp->m_dirleafblk; 1638 bno = 0; 1644 if ((error = xfs_bmap_first_unused(tp, dp, count, &bno, w))) { 1648 ASSERT(bno >= mp->m_dirleafblk && bno < mp->m_dirfreeblk); 1654 if ((error = xfs_bmapi(tp, dp, bno, count, 1672 for (b = bno, mapi = 0; b < bno + count; ) { 1674 c = (int)(bno 1945 xfs_fileoff_t bno; local 2002 xfs_da_map_covers_blocks( int nmap, xfs_bmbt_irec_t *mapp, xfs_dablk_t bno, int count) argument 2029 xfs_da_do_buf( xfs_trans_t *trans, xfs_inode_t *dp, xfs_dablk_t bno, xfs_daddr_t *mappedbnop, xfs_dabuf_t **bpp, int whichfork, int caller, inst_t *ra) argument 2247 xfs_da_get_buf( xfs_trans_t *trans, xfs_inode_t *dp, xfs_dablk_t bno, xfs_daddr_t mappedbno, xfs_dabuf_t **bpp, int whichfork) argument 2263 xfs_da_read_buf( xfs_trans_t *trans, xfs_inode_t *dp, xfs_dablk_t bno, xfs_daddr_t mappedbno, xfs_dabuf_t **bpp, int whichfork) argument 2279 xfs_da_reada_buf( xfs_trans_t *trans, xfs_inode_t *dp, xfs_dablk_t bno, int whichfork) argument [all...] |
H A D | xfs_alloc_btree.c | 77 xfs_agblock_t bno; /* btree block number */ local 221 bno = be32_to_cpu(agf->agf_roots[cur->bc_btnum]); 229 cur->bc_private.a.agbp, NULL, bno))) 246 be32_to_cpu(agf->agf_seqno), bno, 1); 285 bno = NULLAGBLOCK; 321 bno = be32_to_cpu(right->bb_leftsib); 385 bno = be32_to_cpu(left->bb_rightsib); 419 ASSERT(bno != NULLAGBLOCK); 429 rbno = bno; 450 lbno = bno; 1898 xfs_alloc_get_rec( xfs_btree_cur_t *cur, xfs_agblock_t *bno, xfs_extlen_t *len, int *stat) argument 2092 xfs_alloc_lookup_eq( xfs_btree_cur_t *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 2108 xfs_alloc_lookup_ge( xfs_btree_cur_t *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 2124 xfs_alloc_lookup_le( xfs_btree_cur_t *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 2140 xfs_alloc_update( xfs_btree_cur_t *cur, xfs_agblock_t bno, xfs_extlen_t len) argument [all...] |
H A D | xfs_dir_sf.h | 125 #define XFS_DIR_KTRACE_G_DUB 2 /* dp, uio, bno */ 133 xfs_dablk_t bno);
|
/freebsd-9.3-release/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 95 daddr_t bno; local 111 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); 112 if (bno > 0) { 117 *bnp = bno; 296 daddr_t bno, blkno; local 316 bno = ffs_alloccgblk(ip, bp, bpref); 318 return (bno); 338 bno = ffs_alloccgblk(ip, bp, bpref); 339 bpref = dtogd(fs, bno); 349 return (bno); 382 int32_t bno; local 427 ffs_blkfree(struct inode *ip, daddr_t bno, long size) argument 534 int32_t bno; local [all...] |
H A D | mkfs.c | 777 ffs_rdfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) argument 782 offset = bno; 786 (long long)bno, strerror(errno)); 790 err(1, "ffs_rdfs: read error bno %lld size %d", (long long)bno, 795 (long long)bno, strerror(errno)); 802 ffs_wtfs(daddr_t bno, int size, void *bf, const fsinfo_t *fsopts) argument 807 offset = bno; 811 (long long)bno, strerror(errno)); 815 (long long)bno, strerro [all...] |
/freebsd-9.3-release/lib/libufs/ |
H A D | cgroup.c | 55 long bno; local 60 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) 61 if (ffs_isblock(fs, blksfree, bno)) 66 ffs_clrblock(fs, blksfree, (long)bno); 67 ffs_clusteracct(fs, cgp, bno, -1); 71 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); 75 cgbfree(struct uufsd *disk, ufs2_daddr_t bno, long size) argument 84 cg = dtog(fs, bno); [all...] |
/freebsd-9.3-release/sys/fs/ext2fs/ |
H A D | ext2_alloc.c | 88 int32_t bno; local 114 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, 116 if (bno > 0) { 119 ip->i_next_alloc_goal = bno; 123 *bnp = bno; 648 daddr_t bno, runstart, runlen; local 684 bno = bpref; 724 bno = runstart; 736 bno = runstart; 746 bno 783 daddr_t bno; local 967 ext2_blkfree(struct inode *ip, e4fs_daddr_t bno, long size) argument [all...] |
H A D | ext2_subr.c | 167 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, daddr_t bno, int cnt) argument 207 start = bno + 1; 226 start = bno - 1;
|
/freebsd-9.3-release/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 157 ufs2_daddr_t bno; local 200 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); 201 if (bno > 0) { 208 *bnp = bno; 258 ufs2_daddr_t bno; local 325 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); 326 if (bno) { 327 if (bp->b_blkno != fsbtodb(fs, bno)) 391 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); 392 if (bno > 1527 long bno; local 1611 ufs1_daddr_t bno; local 1713 ufs1_daddr_t bno; local 1800 ufs2_daddr_t bno; local 2217 softdep_setup_blkfree(UFSTOVFS(ump), bp, bno, local 2228 ufs2_daddr_t bno; member in struct:ffs_blkfree_trim_params 2528 ufs1_daddr_t bno; local [all...] |
/freebsd-9.3-release/sys/geom/cache/ |
H A D | g_cache.h | 63 #define G_CACHE_BUCKET(bno) ((bno) & (G_CACHE_BUCKETS - 1))
|
H A D | g_cache.c | 106 #define BNO2OFF(bno, sc) ((bno) << (sc)->sc_bshift) 245 g_cache_lookup(struct g_cache_softc *sc, off_t bno) argument 251 LIST_FOREACH(dp, &sc->sc_desclist[G_CACHE_BUCKET(bno)], d_next) 252 if (dp->d_bno == bno) 315 off_t bno, lim; local 318 bno = OFF2BNO(bp->bio_offset, sc); 321 if ((dp = g_cache_lookup(sc, bno)) != NULL) { 334 bno++; 335 } while (bno < [all...] |
/freebsd-9.3-release/lib/libstand/ |
H A D | cd9660.c | 119 #define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE) 275 daddr_t bno, boff; local 283 for (bno = 16;; bno++) { 285 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), 310 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); 320 cdb2devb(bno + boff), 376 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); 378 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), [all...] |