android_kernel_xiaomi_sm8350/block
Tejun Heo 2bbedcb4c1 block: don't test for partition size in bdget_disk() and blk_lookup_devt()
bdget_disk() and blk_lookup_devt() never cared whether the specified
partition (or disk) is zero sized or not.  I got confused while
converting those not to depend on consecutive minor numbers in commit
5a6411b1178baf534aa9138052864dfa89d3eada and later when dev0 was added
it broke callers which expected to get valid return for zero sized
disk devices.

So, they never needed nr_sects checks in the first place.  Kill them.

This problem was spotted and debugged by Bartlmoiej Zolnierkiewicz.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:11 +02:00
..
as-iosched.c block: make kblockd_schedule_work() take the queue as parameter 2008-10-09 08:56:09 +02:00
blk-barrier.c Allow elevators to sort/merge discard requests 2008-10-09 08:56:02 +02:00
blk-core.c block: don't use bio_has_data() in the completion path 2008-10-09 08:56:09 +02:00
blk-exec.c Add some block/ source files to the kernel-api docbook. Fix kernel-doc notation in them as needed. Fix changed function parameter names. Fix typos/spellos. In comments, change REQ_SPECIAL to REQ_TYPE_SPECIAL and REQ_BLOCK_PC to REQ_TYPE_BLOCK_PC. 2008-10-09 08:56:03 +02:00
blk-integrity.c block: implement and use {disk|part}_to_dev() 2008-10-09 08:56:07 +02:00
blk-ioc.c cfq-iosched: fix RCU race in the cfq io_context destructor handling 2008-05-07 09:28:57 +02:00
blk-map.c block: add blk_rq_aligned helper function 2008-10-09 08:56:11 +02:00
blk-merge.c block: inherit CPU completion on bio->rq and rq->rq merges 2008-10-09 08:56:09 +02:00
blk-settings.c block: kmalloc args reversed, small function definition fixes 2008-10-09 08:56:11 +02:00
blk-softirq.c block: add support for IO CPU affinity 2008-10-09 08:56:09 +02:00
blk-sysfs.c block: add support for IO CPU affinity 2008-10-09 08:56:09 +02:00
blk-tag.c Add some block/ source files to the kernel-api docbook. Fix kernel-doc notation in them as needed. Fix changed function parameter names. Fix typos/spellos. In comments, change REQ_SPECIAL to REQ_TYPE_SPECIAL and REQ_BLOCK_PC to REQ_TYPE_BLOCK_PC. 2008-10-09 08:56:03 +02:00
blk.h block: add support for IO CPU affinity 2008-10-09 08:56:09 +02:00
blktrace.c blktrace: simplify flags handling in __blk_add_trace 2008-10-09 08:56:01 +02:00
bsg.c block: introduce struct rq_map_data to use reserved pages 2008-10-09 08:56:10 +02:00
cfq-iosched.c cfq-iosched: fix queue depth detection 2008-10-09 08:56:09 +02:00
cmd-filter.c block: move holder_dir from disk to part0 2008-10-09 08:56:08 +02:00
compat_ioctl.c Add BLKDISCARD ioctl to allow userspace to discard sectors 2008-10-09 08:56:02 +02:00
deadline-iosched.c deadline-iosched: non-functional fixes 2008-10-09 08:56:03 +02:00
elevator.c block: use linux/uaccess.h in elevator.c instead of asm variant 2008-10-09 08:56:09 +02:00
genhd.c block: don't test for partition size in bdget_disk() and blk_lookup_devt() 2008-10-09 08:56:11 +02:00
ioctl.c block: make partition array dynamic 2008-10-09 08:56:08 +02:00
Kconfig block: Block layer data integrity support 2008-07-03 13:21:13 +02:00
Kconfig.iosched
Makefile block: split softirq handling into blk-softirq.c 2008-10-09 08:56:09 +02:00
noop-iosched.c
scsi_ioctl.c block: introduce struct rq_map_data to use reserved pages 2008-10-09 08:56:10 +02:00