Use deactivate_locked_super
Joern Engel [Fri, 26 Mar 2010 13:50:08 +0000 (14:50 +0100)]
Found by Al Viro.

Signed-off-by: Joern Engel <joern@logfs.org>

fs/logfs/super.c

index 2845c41..9d856c4 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);