Lines Matching refs:blk

568 	ufs2_daddr_t blk;  in journal_balloc()  local
575 blk = cgballoc(&disk); in journal_balloc()
576 if (blk > 0) in journal_balloc()
611 if (bwrite(&disk, fsbtodb(&sblock, blk), clrbuf, in journal_balloc()
616 return (blk); in journal_balloc()
623 dir_search(ufs2_daddr_t blk, int bytes) in dir_search() argument
629 if (bread(&disk, fsbtodb(&sblock, blk), block, bytes) <= 0) { in dir_search()
712 dir_insert(ufs2_daddr_t blk, off_t off, ino_t ino) in dir_insert() argument
717 if (bread(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert()
729 if (bwrite(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert()
741 dir_extend(ufs2_daddr_t blk, ufs2_daddr_t nblk, off_t size, ino_t ino) in dir_extend() argument
745 if (bread(&disk, fsbtodb(&sblock, blk), block, in dir_extend()
769 ufs2_daddr_t blk; in journal_insertfile() local
779 blk = 0; in journal_insertfile()
793 blk = dp.dp1->di_db[lbn]; in journal_insertfile()
798 blk = dp.dp2->di_db[lbn]; in journal_insertfile()
802 if (dir_extend(blk, nblk, off, ino) == -1) in journal_insertfile()
805 blk = 0; in journal_insertfile()
827 if (blk) { in journal_insertfile()
828 if (cgbfree(&disk, blk, size) < 0) { in journal_insertfile()
838 indir_fill(ufs2_daddr_t blk, int level, int *resid) in indir_fill() argument
869 if (bwrite(&disk, fsbtodb(&sblock, blk), indirbuf, in indir_fill()
910 ufs2_daddr_t blk; in journal_alloc() local
999 blk = journal_balloc(); in journal_alloc()
1000 if (blk <= 0) in journal_alloc()
1003 dp.dp1->di_db[i] = blk; in journal_alloc()
1006 dp.dp2->di_db[i] = blk; in journal_alloc()
1011 blk = journal_balloc(); in journal_alloc()
1012 if (blk <= 0) in journal_alloc()
1014 blks = indir_fill(blk, i, &resid) + 1; in journal_alloc()
1020 dp.dp1->di_ib[i] = blk; in journal_alloc()
1023 dp.dp2->di_ib[i] = blk; in journal_alloc()