Home
last modified time | relevance | path

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

/linux/fs/ufs/
H A Dcylinder.c34 struct ufs_cg_private_info * ucpi; in ufs_read_cylinder() local
40 ucpi = sbi->s_ucpi[bitmap_nr]; in ufs_read_cylinder()
43 UCPI_UBH(ucpi)->fragment = ufs_cgcmin(cgno); in ufs_read_cylinder()
44 UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits; in ufs_read_cylinder()
48 UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno]; in ufs_read_cylinder()
49 for (i = 1; i < UCPI_UBH(ucpi)->count; i++) in ufs_read_cylinder()
50 if (!(UCPI_UBH(ucpi)->bh[i] = sb_bread(sb, UCPI_UBH(ucpi)->fragment + i))) 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()
[all …]
H A Dballoc.c43 struct ufs_cg_private_info * ucpi; in ufs_free_fragments() local
66 ucpi = ufs_load_cylinder (sb, cgno); in ufs_free_fragments()
67 if (!ucpi) in ufs_free_fragments()
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_fragments()
77 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase); in ufs_free_fragments()
80 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, i)) in ufs_free_fragments()
81 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, i); in ufs_free_fragments()
91 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase); in ufs_free_fragments()
98 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_fragments()
103 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_fragments()
[all …]
H A Dialloc.c61 struct ufs_cg_private_info * ucpi; in ufs_free_inode() local
83 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode()
84 if (!ucpi) { in ufs_free_inode()
88 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_free_inode()
96 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit)) in ufs_free_inode()
99 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit); in ufs_free_inode()
100 if (ino < ucpi->c_irotor) in ufs_free_inode()
101 ucpi->c_irotor = ino; in ufs_free_inode()
114 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_free_inode()
116 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_free_inode()
[all …]
H A Dutil.h356 #define ubh_cg_blktot(ucpi,cylno) \ argument
357 (*((__fs32*)ubh_get_addr(UCPI_UBH(ucpi), (ucpi)->c_btotoff + ((cylno) << 2))))
359 #define ubh_cg_blks(ucpi,cylno,rpos) \ argument
360 (*((__fs16*)ubh_get_addr(UCPI_UBH(ucpi), \
361 (ucpi)->c_boff + (((cylno) * uspi->s_nrpos + (rpos)) << 1 ))))