block: switch partition lookup to use struct block_device