diskio: Fix byte counting on dmcrypt block devices

Byte counting failes if disk is a dmcrypt block device, i.e, if
major==DM_MAJOR. Fix this.
Merge pull request #2 from shuber2/fix-diskio-dmcrypt-bytecounting

diskio: Fix byte counting on dmcrypt block devices