[PATCH 6.12 263/354] resource: introduce is_type_match() helper and use it