| /freebsd/sys/fs/ext2fs/ |
| H A D | ext2_extents.c | 930 e4fs_daddr_t newblk, oldblk; in ext4_ext_split() local 956 newblk = ext4_ext_alloc_meta(ip); in ext4_ext_split() 957 if (newblk == 0) in ext4_ext_split() 959 ablks[a] = newblk; in ext4_ext_split() 962 newblk = ablks[--a]; in ext4_ext_split() 963 bp = getblk(ip->i_devvp, fsbtodb(fs, newblk), fs->e2fs_bsize, 0, 0, 0); in ext4_ext_split() 1015 oldblk = newblk; in ext4_ext_split() 1016 newblk = ablks[--a]; in ext4_ext_split() 1017 error = bread(ip->i_devvp, fsbtodb(fs, newblk), in ext4_ext_split() 1058 error = ext4_ext_insert_index(ip, path + at, border, newblk); in ext4_ext_split() [all …]
|
| H A D | ext2_balloc.c | 62 daddr_t newblk; in ext2_ext_balloc() local 68 error = ext4_ext_get_blocks(ip, lbn, blks, cred, NULL, &allocated, &newblk); in ext2_ext_balloc() 83 bp->b_blkno = fsbtodb(fs, newblk); in ext2_ext_balloc()
|
| H A D | ext2_alloc.c | 212 e2fs_daddr_t newblk, blkno; in ext2_reallocblks() local 297 if ((newblk = (e2fs_daddr_t)ext2_hashalloc(ip, dtog(fs, pref), pref, in ext2_reallocblks() 311 blkno = newblk; in ext2_reallocblks() 357 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->e2fs_fpb) { in ext2_reallocblks()
|
| /freebsd/sys/ufs/ffs/ |
| H A D | ffs_softdep.c | 612 SOFTDEP_TYPE(NEWBLK, newblk, "New block or frag allocation dependency"); 750 static struct jnewblk *cancel_newblk(struct newblk *, struct worklist *, 826 static void newblk_freefrag(struct newblk*); 827 static void free_newblk(struct newblk *); 857 struct newblk **); 858 static int newblk_lookup(struct mount *, ufs2_daddr_t, int, struct newblk **); 2388 struct newblk **newblkpp) in newblk_find() 2390 struct newblk *newblk; in newblk_find() local 2392 LIST_FOREACH(newblk, newblkhd, nb_hash) { in newblk_find() 2393 if (newblkno != newblk->nb_newblkno) in newblk_find() [all …]
|
| H A D | softdep.h | 223 #define WK_NEWBLK(wk) ((struct newblk *)(wk)) 253 LIST_HEAD(newblkhd, newblk); 423 struct newblk { struct 426 LIST_ENTRY(newblk) nb_hash; /* Hashed lookup. */ argument 427 LIST_ENTRY(newblk) nb_deps; /* Bmsafemap's list of newblks. */ 465 struct newblk ad_block; /* Common block logic */ 525 struct newblk ai_block; /* Common block area */ 544 struct newblk ab_newblk; 1034 LIST_HEAD(newblk_hashhead, newblk);
|
| H A D | ffs_alloc.c | 576 ufs1_daddr_t soff, newblk, blkno; in ffs_reallocblks_ufs1() local 685 if ((newblk = ffs_clusteralloc(ip, cg, pref, len)) != 0) in ffs_reallocblks_ufs1() 695 if (newblk == 0) { in ffs_reallocblks_ufs1() 714 blkno = newblk; in ffs_reallocblks_ufs1() 780 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) { in ffs_reallocblks_ufs1() 844 ufs2_daddr_t soff, newblk, blkno, pref; in ffs_reallocblks_ufs2() local 952 if ((newblk = ffs_clusteralloc(ip, cg, pref, len)) != 0) in ffs_reallocblks_ufs2() 962 if (newblk == 0) { in ffs_reallocblks_ufs2() 980 blkno = newblk; in ffs_reallocblks_ufs2() 1046 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) { in ffs_reallocblks_ufs2()
|
| /freebsd/sbin/fsck_ffs/ |
| H A D | dir.c | 779 ufs2_daddr_t lastlbn, oldblk, newblk, indirblk; in expanddir() local 788 indiralloced = newblk = indirblk = 0; in expanddir() 813 newblk = allocblk(cg, sblock.fs_frag, std_checkblkavail); in expanddir() 814 if (newblk == 0) in expanddir() 816 nbp = getdatablk(newblk, sblock.fs_bsize, BT_DIRDATA); in expanddir() 819 DIP_SET(dp, di_db[lastlbn], newblk); in expanddir() 841 if ((newblk = allocblk(cg, sblock.fs_frag, std_checkblkavail)) == 0) in expanddir() 843 bp = getdirblk(newblk, sblock.fs_bsize); in expanddir() 853 DIP_SET(dp, di_db[lastlbn], newblk); in expanddir() 877 IBLK_SET(nbp, lastlbn - UFS_NDADDR, newblk); in expanddir() [all...] |
| H A D | fsutil.c | 1126 ufs2_daddr_t blkno, newblk; in allocblk() local 1137 if ((newblk = (*checkblkavail)(blkno, frags)) == 0) in allocblk() 1139 if (newblk > 0) in allocblk() 1140 return (newblk); in allocblk() 1141 if (newblk < 0) in allocblk() 1142 blkno = -newblk; in allocblk() 1147 if ((newblk = (*checkblkavail)(blkno, frags)) == 0) in allocblk() 1149 if (newblk > 0) in allocblk() 1150 return (newblk); in allocblk() 1151 if (newblk < 0) in allocblk() [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | all.debug.inc | 34 debug_newblk=`vmstat -m | grep -w newblk | awk '{print $2}'` 57 debug_new=`vmstat -m | grep -w newblk | awk '{print $2}'` 59 { printf "stress2: newblk leak: %d/%d.\r\n" \
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zap.c | 181 uint64_t newblk; in zap_table_grow() local 191 newblk = tbl->zt_nextblk; in zap_table_grow() 193 newblk = zap_allocate_blocks(zap, tbl->zt_numblks * 2); in zap_table_grow() 194 tbl->zt_nextblk = newblk; in zap_table_grow() 215 (newblk + 2*b+0) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow() 222 (newblk + 2*b+1) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow() 240 tbl->zt_blk = newblk; in zap_table_grow() 371 uint64_t newblk = zap_allocate_blocks(zap, 1); in zap_grow_ptrtbl() local 374 newblk << FZAP_BLOCK_SHIFT(zap), FTAG, &db_new, in zap_grow_ptrtbl() 383 zap_f_phys(zap)->zap_ptrtbl.zt_blk = newblk; in zap_grow_ptrtbl() [all …]
|