Maxim Patlasov writes:
> It's useless to recreate cbt every time as we called for the same
> block-device size. Actually, it's worthy only if cbt->block_max
> increases.
>
> Since commit b8e560a299 (fix cbt->block_max calculation), we calculate
> cbt->block_max
It's useless to recreate cbt every time as we called for the same
block-device size. Actually, it's worthy only if cbt->block_max
increases.
Since commit b8e560a299 (fix cbt->block_max calculation), we calculate
cbt->block_max precisely:
> cbt->block_max = (size + blocksize - 1) >>