[dm-devel] [PATCH 4/4] Test chunk size against both origin and snapshot sector size
Mikulas Patocka
mpatocka at redhat.com
Mon Mar 15 15:54:32 UTC 2010
> > The Linux bio stack and page cache require that bdev_logical_block_size()
> > is power of two.
>
> OK, I'll have a look, but it sounds like we could use:
> (chunk_size & (bdev_logical_block_size(...) - 1))
We could, but it doesn't matter anyway because it's just initialization
and it's not performance critical.
Mikulas
More information about the dm-devel
mailing list