cgno 45 fs/ufs/balloc.c unsigned cgno, bit, end_bit, bbase, blkmap, i; cgno 59 fs/ufs/balloc.c cgno = ufs_dtog(uspi, fragment); cgno 61 fs/ufs/balloc.c if (cgno >= uspi->s_ncg) { cgno 66 fs/ufs/balloc.c ucpi = ufs_load_cylinder (sb, cgno); cgno 71 fs/ufs/balloc.c ufs_panic (sb, "ufs_free_fragments", "internal error, bad magic number on cg %u", cgno); cgno 90 fs/ufs/balloc.c fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); cgno 101 fs/ufs/balloc.c fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, uspi->s_fpb); cgno 106 fs/ufs/balloc.c fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1); cgno 141 fs/ufs/balloc.c unsigned overflow, cgno, bit, end_bit, i; cgno 161 fs/ufs/balloc.c cgno = ufs_dtog(uspi, fragment); cgno 163 fs/ufs/balloc.c if (cgno >= uspi->s_ncg) { cgno 174 fs/ufs/balloc.c ucpi = ufs_load_cylinder (sb, cgno); cgno 179 fs/ufs/balloc.c ufs_panic (sb, "ufs_free_blocks", "internal error, bad magic number on cg %u", cgno); cgno 195 fs/ufs/balloc.c fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1); cgno 351 fs/ufs/balloc.c unsigned cgno, oldcount, newcount; cgno 415 fs/ufs/balloc.c cgno = ufs_inotocg (inode->i_ino); cgno 417 fs/ufs/balloc.c cgno = ufs_dtog(uspi, goal); cgno 423 fs/ufs/balloc.c result = ufs_alloc_fragments (inode, cgno, goal, count, err); cgno 468 fs/ufs/balloc.c result = ufs_alloc_fragments (inode, cgno, goal, request, err); cgno 515 fs/ufs/balloc.c unsigned cgno, fragno, fragoff, count, fragsize, i; cgno 524 fs/ufs/balloc.c cgno = ufs_dtog(uspi, fragment); cgno 525 fs/ufs/balloc.c if (fs32_to_cpu(sb, UFS_SB(sb)->fs_cs(cgno).cs_nffree) < count) cgno 529 fs/ufs/balloc.c ucpi = ufs_load_cylinder (sb, cgno); cgno 535 fs/ufs/balloc.c "internal error, bad magic number on cg %u", cgno); cgno 557 fs/ufs/balloc.c "internal error or corrupted bitmap on cg %u", cgno); cgno 565 fs/ufs/balloc.c fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); cgno 580 fs/ufs/balloc.c ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \ cgno 587 fs/ufs/balloc.c static u64 ufs_alloc_fragments(struct inode *inode, unsigned cgno, cgno 598 fs/ufs/balloc.c inode->i_ino, cgno, (unsigned long long)goal, count); cgno 602 fs/ufs/balloc.c oldcg = cgno; cgno 613 fs/ufs/balloc.c cgno += j; cgno 614 fs/ufs/balloc.c if (cgno >= uspi->s_ncg) cgno 615 fs/ufs/balloc.c cgno -= uspi->s_ncg; cgno 623 fs/ufs/balloc.c cgno = (oldcg + 1) % uspi->s_ncg; cgno 625 fs/ufs/balloc.c cgno++; cgno 626 fs/ufs/balloc.c if (cgno >= uspi->s_ncg) cgno 627 fs/ufs/balloc.c cgno = 0; cgno 635 fs/ufs/balloc.c ucpi = ufs_load_cylinder (sb, cgno); cgno 641 fs/ufs/balloc.c "internal error, bad magic number on cg %u", cgno); cgno 667 fs/ufs/balloc.c fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, i); cgno 682 fs/ufs/balloc.c fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); cgno 695 fs/ufs/balloc.c result += cgno * uspi->s_fpg; cgno 30 fs/ufs/cylinder.c unsigned cgno, unsigned bitmap_nr) cgno 38 fs/ufs/cylinder.c UFSD("ENTER, cgno %u, bitmap_nr %u\n", cgno, bitmap_nr); cgno 41 fs/ufs/cylinder.c ucg = (struct ufs_cylinder_group *)sbi->s_ucg[cgno]->b_data; cgno 43 fs/ufs/cylinder.c UCPI_UBH(ucpi)->fragment = ufs_cgcmin(cgno); cgno 48 fs/ufs/cylinder.c UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno]; cgno 52 fs/ufs/cylinder.c sbi->s_cgno[bitmap_nr] = cgno; cgno 76 fs/ufs/cylinder.c ufs_error (sb, "ufs_read_cylinder", "can't read cylinder group block %u", cgno); cgno 128 fs/ufs/cylinder.c struct super_block * sb, unsigned cgno) cgno 135 fs/ufs/cylinder.c UFSD("ENTER, cgno %u\n", cgno); cgno 138 fs/ufs/cylinder.c if (cgno >= uspi->s_ncg) { cgno 145 fs/ufs/cylinder.c if (sbi->s_cgno[0] == cgno) { cgno 153 fs/ufs/cylinder.c if (sbi->s_cgno[cgno] != UFS_CGNO_EMPTY) { cgno 154 fs/ufs/cylinder.c if (sbi->s_cgno[cgno] != cgno) { cgno 161 fs/ufs/cylinder.c return sbi->s_ucpi[cgno]; cgno 164 fs/ufs/cylinder.c ufs_read_cylinder (sb, cgno, cgno); cgno 166 fs/ufs/cylinder.c return sbi->s_ucpi[cgno]; cgno 173 fs/ufs/cylinder.c for (i = 0; i < sbi->s_cg_loaded && sbi->s_cgno[i] != cgno; i++); cgno 174 fs/ufs/cylinder.c if (i < sbi->s_cg_loaded && sbi->s_cgno[i] == cgno) { cgno 198 fs/ufs/cylinder.c ufs_read_cylinder (sb, cgno, 0);