do_div vs sector_t

Peter Chubb (
Mon, 14 Jul 2003 14:07:51 +1000

>>>>> "Matthew" == Matthew Wilcox <> writes:

Matthew> do_div(aic->seek_mean, aic->seek_samples); }

Matthew> seek_mean is a sector_t so sometimes it's 64-bit on a 32-bit
Matthew> platform. so we can't avoid calling do_div().

Use sector_div() instead! -- it uses a 63/32 bit divide/remainder if
sector_t is 64-bit, and 32/32 if it's 32-bit.

Dr Peter Chubb  peterc AT
You are lost in a maze of BitKeeper repositories,   all slightly different.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at