/* Get the current sync buffer if it has been created for more than the specified time or the specified time is zero.  */
static struct ip_vs_sync_buff* get_curr_sync_buff(unsigned long time)
/* Get the current sync buffer if it has been created for more than the specified time or the specified time is zero.  */
static struct ip_vs_sync_buff* get_curr_sync_buff(unsigned long time)
{
	struct ip_vs_sync_buff *sb;
	spin_lock_bh(&curr_sb_lock);
	if (curr_sb && (time == 0 ||
			time_before(jiffies - curr_sb->firstuse, time))) {
		sb = curr_sb;
		curr_sb = NULL;
	} else
		sb = NULL;
	spin_unlock_bh(&curr_sb_lock);
	return sb;
}