From: Al Viro Date: Mon, 13 Feb 2012 03:04:09 +0000 (-0500) Subject: ntfs: switch to d_make_root() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ea29c6950a0305f2af7fd4a2021a6e946ada0174;p=mv-sheeva.git ntfs: switch to d_make_root() Signed-off-by: Al Viro --- diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index f907611cca7..22020d8b1ed 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c @@ -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);