Fix typo. Optimize dirty_map
Signed-off-by: JohnMave126 <johnmave126@gmail.com>