kernel_optimize_test/drivers
Damien Le Moal a91e138022 block: Introduce blkdev_nr_zones() helper
Introduce the blkdev_nr_zones() helper function to get the total
number of zones of a zoned block device. This number is always 0 for a
regular block device (q->limits.zoned == BLK_ZONED_NONE case).

Replace hard-coded number of zones calculation in dmz_get_zoned_device()
with a call to this helper.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-10-25 11:17:40 -06:00
..
accessibility
acpi pci-v4.20-changes 2018-10-25 06:50:48 -07:00
amba
android
ata pci-v4.20-changes 2018-10-25 06:50:48 -07:00
atm
auxdisplay
base
bcma
block skd: fix unchecked return values 2018-10-25 11:17:39 -06:00
bluetooth
bus
cdrom cdrom: remove set but not used variable 'tocuse' 2018-10-25 11:17:39 -06:00
char
clk
clocksource
connector
cpufreq
cpuidle
crypto pci-v4.20-changes 2018-10-25 06:50:48 -07:00
dax
dca
devfreq
dio
dma pci-v4.20-changes 2018-10-25 06:50:48 -07:00
dma-buf
edac - amd64_edac: AMD family 0x17, models 0x10-0x2f support (Michael Jin) 2018-10-25 06:40:00 -07:00
eisa
extcon
firewire
firmware
fmc
fpga
fsi
gnss
gpio pci-v4.20-changes 2018-10-25 06:50:48 -07:00
gpu
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
ide
idle
iio
infiniband pci-v4.20-changes 2018-10-25 06:50:48 -07:00
input
iommu
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md block: Introduce blkdev_nr_zones() helper 2018-10-25 11:17:40 -06:00
media
memory
memstick
message
mfd
misc
mmc
mtd
mux
net pci-v4.20-changes 2018-10-25 06:50:48 -07:00
nfc
ntb
nubus
nvdimm
nvme pci-v4.20-changes 2018-10-25 06:50:48 -07:00
nvmem
of
opp
oprofile
parisc
parport
pci pci-v4.20-changes 2018-10-25 06:50:48 -07:00
pcmcia
perf
phy
pinctrl
platform pci-v4.20-changes 2018-10-25 06:50:48 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 pci-v4.20-changes 2018-10-25 06:50:48 -07:00
sbus
scsi scsi: sd_zbc: Fix sd_zbc_check_zones() error checks 2018-10-25 11:17:40 -06:00
sfi
sh
siox
slimbus
sn
soc
soundwire
spi
spmi
ssb
staging
target SCSI misc on 20181024 2018-10-25 07:40:30 -07:00
tc
tee
thermal
thunderbolt
tty
uio
usb
uwb
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile