/* In this function the global data, responsible for internal representation of the ext4 data are initialized to the reset state. Without this, during replacement of the smaller file with the bigger truncation of new file was performed.  */
void ext4fs_reinit_global(void)
/* In this function the global data, responsible for internal representation of the ext4 data are initialized to the reset state. Without this, during replacement of the smaller file with the bigger truncation of new file was performed.  */
void ext4fs_reinit_global(void)
{
	if (ext4fs_indir1_block != NULL) {
		free(ext4fs_indir1_block);
		ext4fs_indir1_block = NULL;
		ext4fs_indir1_size = 0;
		ext4fs_indir1_blkno = -1;
	}
	if (ext4fs_indir2_block != NULL) {
		free(ext4fs_indir2_block);
		ext4fs_indir2_block = NULL;
		ext4fs_indir2_size = 0;
		ext4fs_indir2_blkno = -1;
	}
	if (ext4fs_indir3_block != NULL) {
		free(ext4fs_indir3_block);
		ext4fs_indir3_block = NULL;
		ext4fs_indir3_size = 0;
		ext4fs_indir3_blkno = -1;
	}
}