[PATCH 4.9 007/218] block: Add a helper to validate the block size