]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[patch] remove gendisk->stamp_idle field
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Thu, 13 Oct 2005 19:48:42 +0000 (21:48 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Fri, 28 Oct 2005 06:15:30 +0000 (08:15 +0200)
commit20e5c81fcff89535dced2ed71cf24c6c648ff40e
treec19edf4ce636f0e4713e39dd918c7d3772cda64a
parent741b2252a5e14d6c60a913c77a6099abe73a854a
[patch] remove gendisk->stamp_idle field

struct gendisk has these two fields: stamp, stamp_idle.  Update to
stamp_idle is always in sync with stamp and they are always the same.
Therefore, it does not add any value in having two fields tracking
same timestamp.  Suggest to remove it.

Also, we should only update gendisk stats with non-zero value.
Advantage is that we don't have to needlessly calculate memory address,
and then add zero to the content.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
drivers/block/ll_rw_blk.c
fs/partitions/check.c
include/linux/genhd.h