remove childno usage from truncate_log
remove duplicate clearing of log dirty flag