diff options
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 8d8b25336fbb..85067b4c7e14 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -2037,10 +2037,9 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) | |||
2037 | } | 2037 | } |
2038 | 2038 | ||
2039 | /* Allocate a dentry for the root inode */ | 2039 | /* Allocate a dentry for the root inode */ |
2040 | sb->s_root = d_alloc_root(inode); | 2040 | sb->s_root = d_make_root(inode); |
2041 | if (!sb->s_root) { | 2041 | if (!sb->s_root) { |
2042 | udf_err(sb, "Couldn't allocate root dentry\n"); | 2042 | udf_err(sb, "Couldn't allocate root dentry\n"); |
2043 | iput(inode); | ||
2044 | goto error_out; | 2043 | goto error_out; |
2045 | } | 2044 | } |
2046 | sb->s_maxbytes = MAX_LFS_FILESIZE; | 2045 | sb->s_maxbytes = MAX_LFS_FILESIZE; |