block: replace bi_bdev with a gendisk pointer and partitions index