Speedup init_disk_util() when dealing with many jobs
authorJens Axboe <jens.axboe@oracle.com>
Mon, 26 Feb 2007 11:28:58 +0000 (12:28 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 26 Feb 2007 11:28:58 +0000 (12:28 +0100)
commitc0a6b0d8fcf07512fad42ba16613da83ceec4475
tree19e53e87bfa05496df18d2c595474de2f3c30733
parent5b38ee84f35c7cf3a3a804e6dbe3621f8980d3bb
Speedup init_disk_util() when dealing with many jobs

sysfs lookups can take quite a while, so check against last device
to avoid having to iterate through sysfs again.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
stat.c