diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-12 01:01:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-02 17:48:09 -0400 |
commit | b8c873edbf35570b93edfeddad9e85da54defa52 (patch) | |
tree | c99904d46715263fbd70d0212e1bd7f5d22ae8fe /block/early-lookup.c | |
parent | 3f9b8fb46e5d20eac314f56747e24e1a4e74539d (diff) |
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.c | 2 |
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; } |