On Wed, Apr 10, 2024 at 06:40:22PM +0100, Al Viro wrote: > On Wed, Apr 10, 2024 at 01:26:47PM -0400, Matthew Sakai wrote: > > > > 'dm_dev->bdev_file', it's ok to get inode from the file. > > It can be done much easier, though - > > [PATCH] dm-vdo: use bdev_nr_bytes(bdev) instead of i_size_read(bdev->bd_inode) > > going to be faster, actually - shift is cheaper than dereference... > > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- I've used that patch instead of the original one.