- 01 Nov, 2002 40 commits
-
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
(With bios changes merged)
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
Again so we dont forget to fix this
-
Alan Cox authored
So we dont forget to actually fix the lack of error handling
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
These are from inl going back to 32bit
-
Alan Cox authored
Som boards dont seem to be in spec
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Alan Cox authored
-
Adam Radford authored
-
Alexander Viro authored
RIP. It's not used anymore, so we kill assignments to it and the field itself. That was the last serious use of kdev_t in block drivers.
-
Alexander Viro authored
* in floppy drivers and ps2esdi - replaced with use of ->rq_disk; floppy drivers already have information about "type" part of device number - they had stored that information in floppy_open(), so all we need is a "which drive" part. And that is available from ->rq_disk. * DAC960: changed ->private_data initialization - instead of pointing it to controller (which we already have as disk->queue.queuedata) we simply store a disk number in there. That had simplified ->revalidate_disk() and allowed to kill the use of ->rq_dev in request handler.
-
Alexander Viro authored
* killed the uses of ->rq_dev in printks - several drivers.
-
Alexander Viro authored
* uses in ll_rw_blk.c and elevator.c eliminated - ->rq_disk has everything we need.
-
Alexander Viro authored
* eliminated, since we actually wanted the name, not device number (BTW, that had also killed calculation of name that used to duplicate sd.c one)
-
Alexander Viro authored
_Now_ we can clean the scsi_get_request_dev() up. Indeed, for any SCSI request we either have ->rq_dev == NODEV and ->rq_disk == NULL or ->rq_disk->private_data points to address of template in question. IOW, scsi_get_request_dev() becomes simply { struct gendisk *p = req->rq_disk; return p ? *(struct Scsi_Device_Template **)p->private_data : NULL; } and that allows to kill ->max_major, ->min_major and ->major in Scsi_Device_Template, along with the last non-trivial use of ->rq_dev.
-
Alexander Viro authored
Ditto for sg.c
-
Alexander Viro authored
Ditto for sd.c
-
Alexander Viro authored
Ditto for sr.c
-
Alexander Viro authored
Ditto for st.c
-
Alexander Viro authored
Next 5 chunks prepare cleanup of scsi_get_request_dev(). Namely, scsi_disk/scsi_cd/... get a new field - pointer to Scsi_Device_Template. It is initialized with address of that driver's template. sr.c and sd.c have disk->private_data pointing to that field (instead of pointing to entire structure). osst.c, st.c and sg.c get gendisk - allocated, but not registered (obviously) with ->private_name set in the same way. When they set ->rq_dev, they also set ->rq_disk. This chunk does it for osst.c
-
Alexander Viro authored
->open() of st and osst sets file->private_data to Scsi_Tape in question, other methods use it (same as in sg.c)
-
Alexander Viro authored
* new inlined helper: tape_name(tape) * most of TAPE_NR() uses replaced with that animal ("st%d ...", TAPE_NR(STp), ... -> "%s ...", tape_name(STp), ... )
-
Alexander Viro authored
* new inlined helper: tape_name(tape) * most of TAPE_NR() uses replaced with that animal ("osst%d ...", TAPE_NR(STp), ... -> "%s ...", tape_name(STp), ... )
-