summaryrefslogtreecommitdiffstats
path: root/block/early-lookup.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-12 01:01:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2024-05-02 17:48:09 -0400
commitb8c873edbf35570b93edfeddad9e85da54defa52 (patch)
treec99904d46715263fbd70d0212e1bd7f5d22ae8fe /block/early-lookup.c
parent3f9b8fb46e5d20eac314f56747e24e1a4e74539d (diff)
downloadlinux-stable-b8c873edbf35570b93edfeddad9e85da54defa52.tar.gz
linux-stable-b8c873edbf35570b93edfeddad9e85da54defa52.tar.bz2
linux-stable-b8c873edbf35570b93edfeddad9e85da54defa52.zip
wrapper for access to ->bd_partno
On the next step it's going to get folded into a field where flags will go. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/early-lookup.c')
-rw-r--r--block/early-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/early-lookup.c b/block/early-lookup.c
index 3effbd0d35e9..3fb57f7d2b12 100644
--- a/block/early-lookup.c
+++ b/block/early-lookup.c
@@ -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;
}