Lines Matching refs:e2fs_gd
219 (fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree_hi) << 16)
220 | fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree);
225 (fs2h16(fs->e2fs_gd[cg].ext2bgd_nbfree_hi) << 16)
226 | fs2h16(fs->e2fs_gd[cg].ext2bgd_nbfree);
349 if (fs->e2fs_gd[cg].ext2bgd_nbfree == 0 &&
350 fs->e2fs_gd[cg].ext2bgd_nbfree_hi == 0)
353 fs2h32(fs->e2fs_gd[cg].ext2bgd_b_bitmap),
354 fs2h32(fs->e2fs_gd[cg].ext2bgd_b_bitmap_hi)),
366 (fs->e2fs_gd[cg].ext2bgd_flags & h2fs16(E2FS_BG_BLOCK_UNINIT)))) {
367 ext2fs_init_bb(fs, cg, &fs->e2fs_gd[cg], bbp);
368 fs->e2fs_gd[cg].ext2bgd_flags &= h2fs16(~E2FS_BG_BLOCK_UNINIT);
424 ext2fs_cg_update(fs, cg, &fs->e2fs_gd[cg], -1, 0, 0, 0);
451 if (fs->e2fs_gd[cg].ext2bgd_nifree == 0 &&
452 fs->e2fs_gd[cg].ext2bgd_nifree_hi == 0)
455 fs2h32(fs->e2fs_gd[cg].ext2bgd_i_bitmap),
456 fs2h32(fs->e2fs_gd[cg].ext2bgd_i_bitmap_hi)),
463 KASSERT(!E2FS_HAS_GD_CSUM(fs) || (fs->e2fs_gd[cg].ext2bgd_flags & h2fs16(E2FS_BG_INODE_ZEROED)) != 0);
467 (fs->e2fs_gd[cg].ext2bgd_flags & h2fs16(E2FS_BG_INODE_UNINIT)))) {
468 KASSERT(fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree) == fs->e2fs.e2fs_ipg);
470 fs->e2fs_gd[cg].ext2bgd_flags &= h2fs16(~E2FS_BG_INODE_UNINIT);
502 ext2fs_cg_update(fs, cg, &fs->e2fs_gd[cg],
527 (fs->e2fs_gd[cg].ext2bgd_flags & h2fs16(E2FS_BG_BLOCK_UNINIT)) == 0);
536 fs2h32(fs->e2fs_gd[cg].ext2bgd_b_bitmap),
537 fs2h32(fs->e2fs_gd[cg].ext2bgd_b_bitmap_hi)),
552 ext2fs_cg_update(fs, cg, &fs->e2fs_gd[cg], 1, 0, 0, 0);
582 (fs->e2fs_gd[cg].ext2bgd_flags & h2fs16(E2FS_BG_INODE_UNINIT)) == 0);
585 fs2h32(fs->e2fs_gd[cg].ext2bgd_i_bitmap),
586 fs2h32(fs->e2fs_gd[cg].ext2bgd_i_bitmap_hi)),
602 ext2fs_cg_update(fs, cg, &fs->e2fs_gd[cg],
867 gd = &fs->e2fs_gd[cg];