Commit e3b2895e authored by mincheol's avatar mincheol
Browse files

memory free added

parent 9c763ca5
......@@ -131,6 +131,7 @@ static int extractmd_ioctl(struct inode *inode, struct file *f, struct extractmd
bh_redundant_sb2 = __bread(bdev, extractmd_group_first_block_no(sb, sbi->s_es->s_backup_bgs[1]), EXT4_BLOCK_SIZE(sb));
extractmd_append_file(path_super_block, bh_redundant_sb1->b_data, EXT4_BLOCK_SIZE(sb));
extractmd_append_file(path_super_block, bh_redundant_sb2->b_data, EXT4_BLOCK_SIZE(sb));
}
/* sparse super block? Yes -> then sb in group 0 or a power of 3, 5, or 7 */
......@@ -195,6 +196,8 @@ static int extractmd_ioctl(struct inode *inode, struct file *f, struct extractmd
memcpy(buffer_inode_table + EXT4_BLOCK_SIZE(sb) * h, bh_inode_table->b_data, EXT4_BLOCK_SIZE(sb));
}
extractmd_write_file_per_group(path_inode_table , buffer_inode_table, EXT4_BLOCK_SIZE(sb) * nr_inode_table_block, i);
kfree(buffer_inode_table);
}
/* reserved GDT, if not flexible block group, extract reserved GDT
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment