Fixing sector_div
Fixing sector_div
Posted May 26, 2015 19:32 UTC (Tue) by bcopeland (subscriber, #51750)In reply to: Fixing sector_div by ncm
Parent article: A tale of two data-corruption bugs
> There never was an excuse for this macro as written.
My guess, without having looked at history, is that sector_div() is that way because of do_div(), but even it has been recognized as a trap for the unwary going back quite a while (see e.g.: http://lkml.iu.edu/hypermail/linux/kernel/0308.0/0617.html)
