Re: [PATCH RFC v3 for-6.8/block 04/17] mtd: block2mtd: use bdev apis
From: Christoph Hellwig
Date: Fri Jan 05 2024 - 01:11:10 EST
On Thu, Jan 04, 2024 at 12:28:55PM +0100, Jan Kara wrote:
> What do you think? Because when we are working with the folios it is rather
> natural to use their mapping for dirty balancing?
The real problem is that block2mtd pokes way to deep into block
internals.
I think the saviour here is Christians series to replace the bdev handle
with a struct file, which will allow to use the normal file write path
here and get rid of the entire layering volation.