diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-12 07:01:36 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-02 23:48:09 +0200 |
commit | b8c873edbf35570b93edfeddad9e85da54defa52 (patch) | |
tree | c99904d46715263fbd70d0212e1bd7f5d22ae8fe /lib | |
parent | Use bdev_is_paritition() instead of open-coding it (diff) | |
download | linux-b8c873edbf35570b93edfeddad9e85da54defa52.tar.xz linux-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 '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; } |