Use deactivate_locked_super
authorJoern Engel <joern@logfs.org>
Fri, 26 Mar 2010 13:50:08 +0000 (14:50 +0100)
committerJoern Engel <joern@logfs.org>
Sat, 27 Mar 2010 10:19:16 +0000 (11:19 +0100)
Found by Al Viro.

Signed-off-by: Joern Engel <joern@logfs.org>
fs/logfs/super.c

index 2845c41d70d4fecbbecbb0ab449ed30e6e495b1b..9d856c49afc5b7ba93618039fe5fa2ec9a3492ff 100644 (file)
@@ -572,8 +572,7 @@ int logfs_get_sb_device(struct file_system_type *type, int flags,
        return 0;
 
 err1:
-       up_write(&sb->s_umount);
-       deactivate_super(sb);
+       deactivate_locked_super(sb);
        return err;
 err0:
        kfree(super);