On Fri, Apr 12, 2024 at 05:41:16AM +0100, Al Viro wrote: > Christoph, do you have any problems with that approach? > > COMPLETELY UNTESTED patch along those lines follows; if it works, > it would need to be carved up. And I would probably switch the > places where we do if (bdev->bd_partno) to if (bdev_is_partition(bdev)), > for better readability. See git://git.kernel.org:/pub/scm/linux/kernel/git/viro/vfs.git bd_flags for a carve-up