Lines Matching refs:cgno
30 unsigned cgno, unsigned bitmap_nr) in ufs_read_cylinder() argument
38 UFSD("ENTER, cgno %u, bitmap_nr %u\n", cgno, bitmap_nr); in ufs_read_cylinder()
41 ucg = (struct ufs_cylinder_group *)sbi->s_ucg[cgno]->b_data; in ufs_read_cylinder()
43 UCPI_UBH(ucpi)->fragment = ufs_cgcmin(cgno); in ufs_read_cylinder()
48 UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno]; in ufs_read_cylinder()
52 sbi->s_cgno[bitmap_nr] = cgno; in ufs_read_cylinder()
76 ufs_error (sb, "ufs_read_cylinder", "can't read cylinder group block %u", cgno); in ufs_read_cylinder()
128 struct super_block * sb, unsigned cgno) in ufs_load_cylinder() argument
135 UFSD("ENTER, cgno %u\n", cgno); in ufs_load_cylinder()
138 if (cgno >= uspi->s_ncg) { in ufs_load_cylinder()
145 if (sbi->s_cgno[0] == cgno) { in ufs_load_cylinder()
153 if (sbi->s_cgno[cgno] != UFS_CGNO_EMPTY) { in ufs_load_cylinder()
154 if (sbi->s_cgno[cgno] != cgno) { in ufs_load_cylinder()
161 return sbi->s_ucpi[cgno]; in ufs_load_cylinder()
164 ufs_read_cylinder (sb, cgno, cgno); in ufs_load_cylinder()
166 return sbi->s_ucpi[cgno]; in ufs_load_cylinder()
173 for (i = 0; i < sbi->s_cg_loaded && sbi->s_cgno[i] != cgno; i++); in ufs_load_cylinder()
174 if (i < sbi->s_cg_loaded && sbi->s_cgno[i] == cgno) { in ufs_load_cylinder()
198 ufs_read_cylinder (sb, cgno, 0); in ufs_load_cylinder()