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.