Home
last modified time | relevance | path

Searched refs:newblk (Results 1 – 10 of 10) sorted by relevance

/freebsd-14-stable/sys/fs/ext2fs/
HDext2_extents.c934 e4fs_daddr_t newblk, oldblk; in ext4_ext_split() local
960 newblk = ext4_ext_alloc_meta(ip); in ext4_ext_split()
961 if (newblk == 0) in ext4_ext_split()
963 ablks[a] = newblk; in ext4_ext_split()
966 newblk = ablks[--a]; in ext4_ext_split()
967 bp = getblk(ip->i_devvp, fsbtodb(fs, newblk), fs->e2fs_bsize, 0, 0, 0); in ext4_ext_split()
1019 oldblk = newblk; in ext4_ext_split()
1020 newblk = ablks[--a]; in ext4_ext_split()
1021 error = bread(ip->i_devvp, fsbtodb(fs, newblk), in ext4_ext_split()
1062 error = ext4_ext_insert_index(ip, path + at, border, newblk); in ext4_ext_split()
[all …]
HDext2_balloc.c64 daddr_t newblk; in ext2_ext_balloc() local
70 error = ext4_ext_get_blocks(ip, lbn, blks, cred, NULL, &allocated, &newblk); in ext2_ext_balloc()
85 bp->b_blkno = fsbtodb(fs, newblk); in ext2_ext_balloc()
HDext2_alloc.c214 e2fs_daddr_t newblk, blkno; in ext2_reallocblks() local
299 if ((newblk = (e2fs_daddr_t)ext2_hashalloc(ip, dtog(fs, pref), pref, in ext2_reallocblks()
313 blkno = newblk; in ext2_reallocblks()
359 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->e2fs_fpb) { in ext2_reallocblks()
/freebsd-14-stable/sys/ufs/ffs/
HDffs_softdep.c614 SOFTDEP_TYPE(NEWBLK, newblk, "New block or frag allocation dependency");
752 static struct jnewblk *cancel_newblk(struct newblk *, struct worklist *,
828 static void newblk_freefrag(struct newblk*);
829 static void free_newblk(struct newblk *);
859 struct newblk **);
860 static int newblk_lookup(struct mount *, ufs2_daddr_t, int, struct newblk **);
2392 struct newblk **newblkpp) in newblk_find()
2394 struct newblk *newblk; in newblk_find() local
2396 LIST_FOREACH(newblk, newblkhd, nb_hash) { in newblk_find()
2397 if (newblkno != newblk->nb_newblkno) in newblk_find()
[all …]
HDsoftdep.h225 #define WK_NEWBLK(wk) ((struct newblk *)(wk))
255 LIST_HEAD(newblkhd, newblk);
425 struct newblk { struct
428 LIST_ENTRY(newblk) nb_hash; /* Hashed lookup. */ argument
429 LIST_ENTRY(newblk) nb_deps; /* Bmsafemap's list of newblks. */
467 struct newblk ad_block; /* Common block logic */
527 struct newblk ai_block; /* Common block area */
546 struct newblk ab_newblk;
1036 LIST_HEAD(newblk_hashhead, newblk);
HDffs_alloc.c578 ufs1_daddr_t soff, newblk, blkno; in ffs_reallocblks_ufs1() local
687 if ((newblk = ffs_clusteralloc(ip, cg, pref, len)) != 0) in ffs_reallocblks_ufs1()
697 if (newblk == 0) { in ffs_reallocblks_ufs1()
716 blkno = newblk; in ffs_reallocblks_ufs1()
782 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) { in ffs_reallocblks_ufs1()
846 ufs2_daddr_t soff, newblk, blkno, pref; in ffs_reallocblks_ufs2() local
954 if ((newblk = ffs_clusteralloc(ip, cg, pref, len)) != 0) in ffs_reallocblks_ufs2()
964 if (newblk == 0) { in ffs_reallocblks_ufs2()
982 blkno = newblk; in ffs_reallocblks_ufs2()
1048 for (blkno = newblk, i = 0; i < len; i++, blkno += fs->fs_frag) { in ffs_reallocblks_ufs2()
/freebsd-14-stable/sbin/fsck_ffs/
HDdir.c785 ufs2_daddr_t lastlbn, oldblk, newblk, indirblk; in expanddir() local
794 indiralloced = newblk = indirblk = 0; in expanddir()
819 newblk = allocblk(cg, sblock.fs_frag, std_checkblkavail); in expanddir()
820 if (newblk == 0) in expanddir()
822 nbp = getdatablk(newblk, sblock.fs_bsize, BT_DIRDATA); in expanddir()
825 DIP_SET(dp, di_db[lastlbn], newblk); in expanddir()
847 if ((newblk = allocblk(cg, sblock.fs_frag, std_checkblkavail)) == 0) in expanddir()
849 bp = getdirblk(newblk, sblock.fs_bsize); in expanddir()
859 DIP_SET(dp, di_db[lastlbn], newblk); in expanddir()
883 IBLK_SET(nbp, lastlbn - UFS_NDADDR, newblk); in expanddir()
[all …]
HDfsutil.c1133 ufs2_daddr_t blkno, newblk; in allocblk() local
1144 if ((newblk = (*checkblkavail)(blkno, frags)) == 0) in allocblk()
1146 if (newblk > 0) in allocblk()
1147 return (newblk); in allocblk()
1148 if (newblk < 0) in allocblk()
1149 blkno = -newblk; in allocblk()
1154 if ((newblk = (*checkblkavail)(blkno, frags)) == 0) in allocblk()
1156 if (newblk > 0) in allocblk()
1157 return (newblk); in allocblk()
1158 if (newblk < 0) in allocblk()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/module/zfs/
HDzap.c170 uint64_t newblk; in zap_table_grow() local
180 newblk = tbl->zt_nextblk; in zap_table_grow()
182 newblk = zap_allocate_blocks(zap, tbl->zt_numblks * 2); in zap_table_grow()
183 tbl->zt_nextblk = newblk; in zap_table_grow()
204 (newblk + 2*b+0) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow()
211 (newblk + 2*b+1) << bs, FTAG, &db_new, DMU_READ_NO_PREFETCH)); in zap_table_grow()
229 tbl->zt_blk = newblk; in zap_table_grow()
360 uint64_t newblk = zap_allocate_blocks(zap, 1); in zap_grow_ptrtbl() local
363 newblk << FZAP_BLOCK_SHIFT(zap), FTAG, &db_new, in zap_grow_ptrtbl()
372 zap_f_phys(zap)->zap_ptrtbl.zt_blk = newblk; in zap_grow_ptrtbl()
[all …]
/freebsd-14-stable/tools/test/stress2/misc/
HDall.debug.inc34 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" \