diff options
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r-- | fs/ufs/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 5246ee3e5607..ac8e279eccc6 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -73,7 +73,6 @@ | |||
73 | #include <stdarg.h> | 73 | #include <stdarg.h> |
74 | 74 | ||
75 | #include <asm/uaccess.h> | 75 | #include <asm/uaccess.h> |
76 | #include <asm/system.h> | ||
77 | 76 | ||
78 | #include <linux/errno.h> | 77 | #include <linux/errno.h> |
79 | #include <linux/fs.h> | 78 | #include <linux/fs.h> |
@@ -1157,16 +1156,17 @@ magic_found: | |||
1157 | "fast symlink size (%u)\n", uspi->s_maxsymlinklen); | 1156 | "fast symlink size (%u)\n", uspi->s_maxsymlinklen); |
1158 | uspi->s_maxsymlinklen = maxsymlen; | 1157 | uspi->s_maxsymlinklen = maxsymlen; |
1159 | } | 1158 | } |
1159 | sb->s_max_links = UFS_LINK_MAX; | ||
1160 | 1160 | ||
1161 | inode = ufs_iget(sb, UFS_ROOTINO); | 1161 | inode = ufs_iget(sb, UFS_ROOTINO); |
1162 | if (IS_ERR(inode)) { | 1162 | if (IS_ERR(inode)) { |
1163 | ret = PTR_ERR(inode); | 1163 | ret = PTR_ERR(inode); |
1164 | goto failed; | 1164 | goto failed; |
1165 | } | 1165 | } |
1166 | sb->s_root = d_alloc_root(inode); | 1166 | sb->s_root = d_make_root(inode); |
1167 | if (!sb->s_root) { | 1167 | if (!sb->s_root) { |
1168 | ret = -ENOMEM; | 1168 | ret = -ENOMEM; |
1169 | goto dalloc_failed; | 1169 | goto failed; |
1170 | } | 1170 | } |
1171 | 1171 | ||
1172 | ufs_setup_cstotal(sb); | 1172 | ufs_setup_cstotal(sb); |
@@ -1180,8 +1180,6 @@ magic_found: | |||
1180 | UFSD("EXIT\n"); | 1180 | UFSD("EXIT\n"); |
1181 | return 0; | 1181 | return 0; |
1182 | 1182 | ||
1183 | dalloc_failed: | ||
1184 | iput(inode); | ||
1185 | failed: | 1183 | failed: |
1186 | if (ubh) | 1184 | if (ubh) |
1187 | ubh_brelse_uspi (uspi); | 1185 | ubh_brelse_uspi (uspi); |