Re: [PATCH 3/9] xfs: create buftarg helpers to abstract block_device operations

Christoph Hellwig
2024-01-03T08:51:56Z

On Sun, Dec 31, 2023 at 12:14:20PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> In the next few patches, we're going into introduce buffer targets that
> are not block devices. Introduce block_device helpers so that the
> compiler can check that we're not feeding an xfile object to something
> expecting a block device.

I don't see how these helpers allow the compiler to check anything.
I also don't see any other good reason for the helpers, but maybe I'm
just missing something.