[PATCH v2 OLK-5.10 35/37] mm/sharepool: use delete_spg_node to replace some repetitive code