Home
last modified time | relevance | path

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

/linux-2.6.39/fs/ufs/
Dcylinder.c33 struct ufs_cg_private_info * ucpi; in ufs_read_cylinder() local
39 ucpi = sbi->s_ucpi[bitmap_nr]; in ufs_read_cylinder()
42 UCPI_UBH(ucpi)->fragment = ufs_cgcmin(cgno); in ufs_read_cylinder()
43 UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits; in ufs_read_cylinder()
47 UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno]; in ufs_read_cylinder()
48 for (i = 1; i < UCPI_UBH(ucpi)->count; i++) in ufs_read_cylinder()
49 if (!(UCPI_UBH(ucpi)->bh[i] = sb_bread(sb, UCPI_UBH(ucpi)->fragment + i))) in ufs_read_cylinder()
53 ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); in ufs_read_cylinder()
54 ucpi->c_ncyl = fs16_to_cpu(sb, ucg->cg_ncyl); in ufs_read_cylinder()
55 ucpi->c_niblk = fs16_to_cpu(sb, ucg->cg_niblk); in ufs_read_cylinder()
[all …]
Dballoc.c42 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()
90 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase); in ufs_free_fragments()
97 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_fragments()
102 ufs_clusteracct (sb, ucpi, blkno, 1); in ufs_free_fragments()
[all …]
Dialloc.c61 struct ufs_cg_private_info * ucpi; in ufs_free_inode() local
84 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode()
85 if (!ucpi) { in ufs_free_inode()
89 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_free_inode()
97 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit)) in ufs_free_inode()
100 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit); in ufs_free_inode()
101 if (ino < ucpi->c_irotor) in ufs_free_inode()
102 ucpi->c_irotor = ino; in ufs_free_inode()
115 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_free_inode()
117 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_free_inode()
[all …]
Dutil.h368 #define ubh_cg_blktot(ucpi,cylno) \ argument
369 (*((__fs32*)ubh_get_addr(UCPI_UBH(ucpi), (ucpi)->c_btotoff + ((cylno) << 2))))
371 #define ubh_cg_blks(ucpi,cylno,rpos) \ argument
372 (*((__fs16*)ubh_get_addr(UCPI_UBH(ucpi), \
373 (ucpi)->c_boff + (((cylno) * uspi->s_nrpos + (rpos)) << 1 ))))