Home
last modified time | relevance | path

Searched refs:ucg (Results 1 – 4 of 4) sorted by relevance

/linux-4.19.296/fs/ufs/
Dcylinder.c35 struct ufs_cylinder_group * ucg; in ufs_read_cylinder() local
41 ucg = (struct ufs_cylinder_group *)sbi->s_ucg[cgno]->b_data; in ufs_read_cylinder()
54 ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); in ufs_read_cylinder()
55 ucpi->c_ncyl = fs16_to_cpu(sb, ucg->cg_ncyl); in ufs_read_cylinder()
56 ucpi->c_niblk = fs16_to_cpu(sb, ucg->cg_niblk); in ufs_read_cylinder()
57 ucpi->c_ndblk = fs32_to_cpu(sb, ucg->cg_ndblk); in ufs_read_cylinder()
58 ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor); in ufs_read_cylinder()
59 ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor); in ufs_read_cylinder()
60 ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor); in ufs_read_cylinder()
61 ucpi->c_btotoff = fs32_to_cpu(sb, ucg->cg_btotoff); in ufs_read_cylinder()
[all …]
Dialloc.c62 struct ufs_cylinder_group * ucg; in ufs_free_inode() local
88 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_free_inode()
89 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_free_inode()
92 ucg->cg_time = ufs_get_seconds(sb); in ufs_free_inode()
102 fs32_add(sb, &ucg->cg_cs.cs_nifree, 1); in ufs_free_inode()
107 fs32_sub(sb, &ucg->cg_cs.cs_ndir, 1); in ufs_free_inode()
131 struct ufs_cylinder_group *ucg) in ufs2_init_inodes_chunk() argument
137 fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_initediblk)); in ufs2_init_inodes_chunk()
154 fs32_add(sb, &ucg->cg_u.cg_u2.cg_initediblk, uspi->s_inopb); in ufs2_init_inodes_chunk()
178 struct ufs_cylinder_group * ucg; in ufs_new_inode() local
[all …]
Dballoc.c44 struct ufs_cylinder_group * ucg; in ufs_free_fragments() local
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_fragments()
70 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_fragments()
78 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1); in ufs_free_fragments()
88 fs32_add(sb, &ucg->cg_cs.cs_nffree, count); in ufs_free_fragments()
92 ufs_fragacct(sb, blkmap, ucg->cg_frsum, 1); in ufs_free_fragments()
99 fs32_sub(sb, &ucg->cg_cs.cs_nffree, uspi->s_fpb); in ufs_free_fragments()
104 fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1); in ufs_free_fragments()
140 struct ufs_cylinder_group * ucg; in ufs_free_blocks() local
177 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_blocks()
[all …]
Dufs_fs.h522 #define ufs_cg_chkmagic(sb, ucg) \ argument
523 (fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)
527 #define ufs_ocg_blktot(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg… argument
528 #define ufs_ocg_blks(sb, ucg, cylno) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg… argument
529 #define ufs_ocg_inosused(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg… argument
530 #define ufs_ocg_blksfree(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg… argument
531 #define ufs_ocg_chkmagic(sb, ucg) \ argument
532 (fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)