FreeBSD/sbin/hastd/activemap.c
/*
 * Set synchronization offset to the first dirty extent.
 */
Set synchronization offset to the first dirty extent.
Set synchronization offset to the first dirty extent .
void
activemap_sync_rewind(struct activemap *amp)
{
	int ext;
	PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC);
	bit_ffs(amp->am_syncmap, amp->am_nextents, &ext);
	if (ext == -1) {
		amp->am_syncoff = -2;
		return;
	}
	amp->am_syncoff = -1;
}
void activemap_sync_rewind ( struct activemap * amp ) { int ext ; PJDLOG_ASSERT ( amp -> am_magic == ACTIVEMAP_MAGIC ) ; bit_ffs ( amp -> am_syncmap , amp -> am_nextents , & ext ) ; if ( ext == -1 ) { amp -> am_syncoff = -2 ; return ; } amp -> am_syncoff = -1 ; }
Set synchronization offset to the first dirty extent.
Set synchronization offset to the first dirty extent .
/* There are no extents to synchronize. */ /*
	 * Mark that we want to start synchronization from the beginning.
	 */