aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2020-09-29 16:27:21 -0400
committerMike Snitzer <snitzer@redhat.com>2020-09-29 16:31:35 -0400
commit1471308fb5ec4335f9ae9fc65f65048dbe7c336e (patch)
tree69aef90f47105e1c730e5277f352d3d5446a1174 /lib
parentdm crypt: document encrypted keyring key option (diff)
parentblock-mq: fix comments in blk_mq_queue_tag_busy_iter (diff)
downloadlinux-dev-1471308fb5ec4335f9ae9fc65f65048dbe7c336e.tar.xz
linux-dev-1471308fb5ec4335f9ae9fc65f65048dbe7c336e.zip
Merge remote-tracking branch 'jens/for-5.10/block' into dm-5.10
DM depends on these block 5.10 commits: 22ada802ede8 block: use lcm_not_zero() when stacking chunk_sectors 07d098e6bbad block: allow 'chunk_sectors' to be non-power-of-2 021a24460dc2 block: add QUEUE_FLAG_NOWAIT 6abc49468eea dm: add support for REQ_NOWAIT and enable it for linear target Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index afb9521ddf91..14c9a6af1b23 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -940,13 +940,13 @@ char *bdev_name(char *buf, char *end, struct block_device *bdev,
hd = bdev->bd_disk;
buf = string(buf, end, hd->disk_name, spec);
- if (bdev->bd_part->partno) {
+ if (bdev->bd_partno) {
if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) {
if (buf < end)
*buf = 'p';
buf++;
}
- buf = number(buf, end, bdev->bd_part->partno, spec);
+ buf = number(buf, end, bdev->bd_partno, spec);
}
return buf;
}