fix fs/sysv s_dirt handling
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 May 2010 13:04:07 +0000 (09:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 May 2010 02:16:05 +0000 (22:16 -0400)
got broken on ->sync_fs() conversion a year ago, nobody noticed...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sysv/inode.c

index 4573734d723dd3dc0a9cdccfd135505ec315930c..d4a5380b566955549a2ee8cf005d724a2a53cede 100644 (file)
@@ -43,6 +43,7 @@ static int sysv_sync_fs(struct super_block *sb, int wait)
         * then attach current time stamp.
         * But if the filesystem was marked clean, keep it clean.
         */
+       sb->s_dirt = 0;
        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))