* 32 bits (truncated to the upper limit, if needed)
*/
if (ep_ro > 0xffffffffULL)
- rand = (u64)prandom_u32_max((u32)(ep_ro >> 32)) << 32;
+ rand = (u64)get_random_u32_below((u32)(ep_ro >> 32)) << 32;
if (rand == (ep_ro & 0xffffffff00000000ULL))
- rand |= prandom_u32_max((u32)ep_ro);
+ rand |= get_random_u32_below((u32)ep_ro);
else
rand |= get_random_u32();
#else
* Calculate penalties per-tgt and per-server
*
* Re-calculate penalties when the configuration changes, active targets
- * change and after statfs refresh (all these are reflected by lq_dirty flag).
+ * change and after statfs refresh (all these are reflected by LQ_DIRTY flag).
* On every tgt and server: decay the penalty by half for every 8x the update
* interval that the device has been idle. That gives lots of time for the
* statfs information to be updated (which the penalty is only a proxy for),