fs/sysv: remove another useless write_super call
[linux-2.6-block.git] / fs / sysv / inode.c
index 08d0b2568cd35e060a9e6b8ffda87d7d6569cbdb..f20ffe32b3982873702f27b035a124daf12a5bf7 100644 (file)
@@ -68,12 +68,9 @@ static void sysv_write_super(struct super_block *sb)
 static int sysv_remount(struct super_block *sb, int *flags, char *data)
 {
        struct sysv_sb_info *sbi = SYSV_SB(sb);
-       lock_super(sb);
+
        if (sbi->s_forced_ro)
                *flags |= MS_RDONLY;
-       if (*flags & MS_RDONLY)
-               sysv_write_super(sb);
-       unlock_super(sb);
        return 0;
 }
 
@@ -81,9 +78,6 @@ static void sysv_put_super(struct super_block *sb)
 {
        struct sysv_sb_info *sbi = SYSV_SB(sb);
 
-       if (sb->s_dirt)
-               sysv_write_super(sb);
-
        if (!(sb->s_flags & MS_RDONLY)) {
                /* XXX ext2 also updates the state here */
                mark_buffer_dirty(sbi->s_bh1);