[tor-commits] [tor/master] Split dirinfo_type_t computation into a new function