/* This file contains code for allocating/freeing inodes and for read/writing the superblock.  */
static int sysv_sync_fs(struct super_block *sb, int wait)
/* This file contains code for allocating/freeing inodes and for read/writing the superblock.  */
static int sysv_sync_fs(struct super_block *sb, int wait)
{
	struct sysv_sb_info *sbi = SYSV_SB(sb);
	unsigned long time = get_seconds(), old_time;
	lock_super(sb);
	old_time = fs32_to_cpu(sbi, *sbi->s_sb_time);
	if (sbi->s_type == FSTYPE_SYSV4) {
		if (*sbi->s_sb_state == cpu_to_fs32(sbi, 0x7c269d38 - old_time))
			*sbi->s_sb_state = cpu_to_fs32(sbi, 0x7c269d38 - time);
		*sbi->s_sb_time = cpu_to_fs32(sbi, time);
		mark_buffer_dirty(sbi->s_bh2);
	}
	unlock_super(sb);
	return 0;
}