> > 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 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel