ntfs: switch to d_make_root()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 13 Feb 2012 03:04:09 +0000 (22:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:35 +0000 (21:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ntfs/super.c

index f907611cca73c2de10ce7645b8afafb3319cf9fd..22020d8b1ed20d913e4d658888dc381b6f8b6505 100644 (file)
@@ -2908,9 +2908,10 @@ static int ntfs_fill_super(struct super_block *sb, void *opt, const int silent)
                ntfs_error(sb, "Failed to load system files.");
                goto unl_upcase_iput_tmp_ino_err_out_now;
        }
-       if ((sb->s_root = d_alloc_root(vol->root_ino))) {
-               /* We grab a reference, simulating an ntfs_iget(). */
-               ihold(vol->root_ino);
+
+       /* We grab a reference, simulating an ntfs_iget(). */
+       ihold(vol->root_ino);
+       if ((sb->s_root = d_make_root(vol->root_ino))) {
                ntfs_debug("Exiting, status successful.");
                /* Release the default upcase if it has no users. */
                mutex_lock(&ntfs_lock);