commit the tmp files.