/* If the timer has already been set, it ignores the new request. This function MUST be called within a section locking the segment semaphore.  */
static void nilfs_segctor_start_timer(struct nilfs_sc_info *)
/* If the timer has already been set, it ignores the new request. This function MUST be called within a section locking the segment semaphore.  */
static void nilfs_segctor_start_timer(struct nilfs_sc_info *)
{
	spin_lock(&sci->sc_state_lock);
	if (sci->sc_timer && !(sci->sc_state & NILFS_SEGCTOR_COMMIT)) {
		sci->sc_timer->expires = jiffies + sci->sc_interval;
		add_timer(sci->sc_timer);
		sci->sc_state |= NILFS_SEGCTOR_COMMIT;
	}
	spin_unlock(&sci->sc_state_lock);
}