diff options
author | Tejun Heo <tj@kernel.org> | 2008-08-29 05:41:51 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:11 -0400 |
commit | 2bbedcb4c1abac498f18e5770d62ae66ff235ada (patch) | |
tree | 2609360651b9a0d137c5c564a971152c90d52001 /net/ethernet | |
parent | 759f8ca3048f7438aa3129268d7252552505d662 (diff) |
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>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions