Re: [PATCH] wrong disk index in /proc/stat

From: Martin Wilck (Martin.Wilck@fujitsu-siemens.com)
Date: Tue Jun 26 2001 - 09:07:33 EST


Hi,

> On the other hand, in my tree:
>
> static inline unsigned int disk_index (kdev_t dev)
> {
> struct gendisk *g = get_gendisk(dev);
> return g ? (MINOR(dev) >> g->minor_shift) : 0;
> }

Well,

a) this is not in the official kernel,
b) the original genhd.h says that's too slow (is it really slower?)

Regards,
Martin

-- 
Martin Wilck     <Martin.Wilck@fujitsu-siemens.com>
FSC EP PS DS1, Paderborn      Tel. +49 5251 8 15113

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:14 EST