void ext2fs_clear_generic_bitmap(ext2fs_generic_bitmap bitmap) { if (!EXT2FS_IS_32_BITMAP(bitmap)) { if (EXT2FS_IS_64_BITMAP(bitmap)) { ext2fs_warn_bitmap32(bitmap, __func__); ext2fs_clear_generic_bmap(bitmap); return; } #ifndef OMIT_COM_ERR com_err(0, EXT2_ET_MAGIC_GENERIC_BITMAP, "clear_generic_bitmap"); #endif return; } memset(bitmap->bitmap, 0, (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1)); }
void ext2fs_clear_block_bitmap(ext2fs_block_bitmap bitmap) { ext2fs_clear_generic_bmap(bitmap); }
void ext2fs_clear_inode_bitmap(ext2fs_inode_bitmap bitmap) { ext2fs_clear_generic_bmap(bitmap); }