[PATCH 5.15 005/484] block: refactor to use helper