/* Make sure we log the unaligned access, so that user/sysadmin can notice it and eventually fix the program. However, we don't want to do that for every access so we pace it with jiffies. This isn't really MP-safe, but it doesn't really have to be either...  */
static int within_logging_rate_limit(void)
/* Make sure we log the unaligned access, so that user/sysadmin can notice it and eventually fix the program. However, we don't want to do that for every access so we pace it with jiffies. This isn't really MP-safe, but it doesn't really have to be either...  */
static int within_logging_rate_limit(void)
{
	static unsigned long count, last_time;
	if (time_after(jiffies, last_time + 5 * HZ))
		count = 0;
	if (count < 5) {
		last_time = jiffies;
		count++;
		return 1;
	}
	return 0;
}