Re: blk_validate_limits validation of block size (was Re: [PATCH v2] null_blk: fix validation of block size)

From: Christoph Hellwig
Date: Thu Jul 04 2024 - 02:18:59 EST


On Wed, Jul 03, 2024 at 06:28:48PM +0100, John Garry wrote:
> ok, fine. It's a bit unfortunate that blk_validate_block_size() won't be
> internal to the block layer.

It is a completely trivial helper not really exposing any internals.
In theory we could just open code, but with the PAGE_SIZE limit that
people are trying to remove with large block size support that might
actually create more problems than it solves.