[PATCH 4.19 014/338] block: Add a helper to validate the block size