diff options
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index c519927b7b5e..228f5bdf0772 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -942,7 +942,7 @@ static int nilfs_get_root_dentry(struct super_block *sb, | |||
942 | iput(inode); | 942 | iput(inode); |
943 | } | 943 | } |
944 | } else { | 944 | } else { |
945 | dentry = d_obtain_alias(inode); | 945 | dentry = d_obtain_root(inode); |
946 | if (IS_ERR(dentry)) { | 946 | if (IS_ERR(dentry)) { |
947 | ret = PTR_ERR(dentry); | 947 | ret = PTR_ERR(dentry); |
948 | goto failed_dentry; | 948 | goto failed_dentry; |