]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - block/early-lookup.c
Merge tag 'pull-bd_flags-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[thirdparty/kernel/linux.git] / block / early-lookup.c
index 3effbd0d35e9fa0eb1f24b1131f3eca2ad4b6656..3fb57f7d2b1276df8857b71da7d5891b3d0061b0 100644 (file)
@@ -78,7 +78,7 @@ static int __init devt_from_partuuid(const char *uuid_str, dev_t *devt)
                 * to the partition number found by UUID.
                 */
                *devt = part_devt(dev_to_disk(dev),
-                                 dev_to_bdev(dev)->bd_partno + offset);
+                                 bdev_partno(dev_to_bdev(dev)) + offset);
        } else {
                *devt = dev->devt;
        }