• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ufs/

Lines Matching defs:ucpi

42 	struct ufs_cg_private_info * ucpi;
66 ucpi = ufs_load_cylinder (sb, cgno);
67 if (!ucpi)
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
77 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase);
80 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, i))
81 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, i);
93 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase);
100 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) {
105 ufs_clusteracct (sb, ucpi, blkno, 1);
112 fs16_add(sb, &ubh_cg_blks(ucpi, cylno,
114 fs32_add(sb, &ubh_cg_blktot(ucpi, cylno), 1);
119 ubh_mark_buffer_dirty (UCPI_UBH(ucpi));
121 ubh_ll_rw_block(SWRITE, UCPI_UBH(ucpi));
122 ubh_wait_on_buffer (UCPI_UBH(ucpi));
144 struct ufs_cg_private_info * ucpi;
180 ucpi = ufs_load_cylinder (sb, cgno);
181 if (!ucpi)
183 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
191 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) {
194 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno);
196 ufs_clusteracct (sb, ucpi, blkno, 1);
206 fs16_add(sb, &ubh_cg_blks(ucpi, cylno,
208 fs32_add(sb, &ubh_cg_blktot(ucpi, cylno), 1);
213 ubh_mark_buffer_dirty (UCPI_UBH(ucpi));
215 ubh_ll_rw_block(SWRITE, UCPI_UBH(ucpi));
216 ubh_wait_on_buffer (UCPI_UBH(ucpi));
510 struct ufs_cg_private_info * ucpi;
527 ucpi = ufs_load_cylinder (sb, cgno);
528 if (!ucpi)
530 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
540 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i))
547 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i))
557 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i);
568 ubh_mark_buffer_dirty (UCPI_UBH(ucpi));
570 ubh_ll_rw_block(SWRITE, UCPI_UBH(ucpi));
571 ubh_wait_on_buffer (UCPI_UBH(ucpi));
594 struct ufs_cg_private_info * ucpi;
638 ucpi = ufs_load_cylinder (sb, cgno);
639 if (!ucpi)
641 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
648 result = ufs_alloccg_block (inode, ucpi, goal, err);
659 result = ufs_alloccg_block (inode, ucpi, goal, err);
664 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, goal + i);
675 result = ufs_bitmap_search (sb, ucpi, goal, allocsize);
683 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, result + i);
695 ubh_mark_buffer_dirty (UCPI_UBH(ucpi));
697 ubh_ll_rw_block(SWRITE, UCPI_UBH(ucpi));
698 ubh_wait_on_buffer (UCPI_UBH(ucpi));
708 struct ufs_cg_private_info *ucpi,
722 ucg = ubh_get_ucg(UCPI_UBH(ucpi));
725 goal = ucpi->c_rotor;
734 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, ufs_fragstoblks(goal))) {
740 result = ufs_bitmap_search (sb, ucpi, goal, uspi->s_fpb);
743 ucpi->c_rotor = result;
746 ubh_clrblock (UCPI_UBH(ucpi), ucpi->c_freeoff, blkno);
748 ufs_clusteracct (sb, ucpi, blkno, -1);
756 fs32_sub(sb, &UFS_SB(sb)->fs_cs(ucpi->c_cgx).cs_nbfree, 1);
761 fs16_sub(sb, &ubh_cg_blks(ucpi, cylno,
763 fs32_sub(sb, &ubh_cg_blktot(ucpi, cylno), 1);
802 * @ucpi: pointer to cylinder group info
807 struct ufs_cg_private_info *ucpi,
827 UFSD("ENTER, cg %u, goal %llu, count %u\n", ucpi->c_cgx,
831 ucg = ubh_get_ucg(UCPI_UBH(ucpi));
836 start = ucpi->c_frotor >> 3;
839 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff + start, length,
844 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff, length,
852 ucpi->c_cgx, start, length, count,
853 ucpi->c_freeoff);
859 ucpi->c_frotor = result;
866 blockmap = ubh_blkmap(UCPI_UBH(ucpi), ucpi->c_freeoff, result);
882 ucpi->c_cgx);
888 struct ufs_cg_private_info * ucpi, unsigned blkno, int cnt)
898 ubh_setbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno);
900 ubh_clrbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno);
907 if ( end >= ucpi->c_nclusterblks)
908 end = ucpi->c_nclusterblks;
909 i = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, end, start);
921 i = ubh_find_last_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, start, end);
933 fs32_add(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (i << 2)), cnt);
935 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (back << 2)), cnt);
937 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (forw << 2)), cnt);