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 /lib | |
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 'lib')
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3f9f1b959ef0..cdd4e2314bfc 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -972,7 +972,7 @@ char *bdev_name(char *buf, char *end, struct block_device *bdev, *buf = 'p'; buf++; } - buf = number(buf, end, bdev->bd_partno, spec); + buf = number(buf, end, bdev_partno(bdev), spec); } return buf; } |