diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-10-15 04:25:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-15 04:25:37 -0700 |
| commit | 5682bcc620dbee99319997718c8929ec0d797854 (patch) | |
| tree | 09a95ed6c8f9233f0182b037ead14982059c8d09 /include/linux/timer.h | |
| parent | 68c16870dcfaba7c9e2dd5055a2caf4edcf42e87 (diff) | |
[PATCH] bdev->bd_disk introduced
There we go - now we can put a reference to gendisk into block_device. Which
we do in do_open(). Most of the callers of get_gendisk() are simply using
bdev->bd_disk now (and most of the put_disk() calls introduced on previous
step disappear). We also put that pointer into struct request - ->rq_disk.
That allows to get rid of disk_index() kludges in md.c (we simply count
relevant IO in the struct gendisk fields) and kill the export of get_gendisk().
Notice that by now we can move _all_ IO counters into gendisk. That
will kill a bunch of per-major arrays and more importantly, allow to merge
sard in clean way. FWIW, we probably could show them as disk/partitions
attributes in driverfs...
Diffstat (limited to 'include/linux/timer.h')
0 files changed, 0 insertions, 0 deletions
