+17
-17
fs/minix/inode.c
+17
-17
fs/minix/inode.c
···
263
263
goto out_no_root;
264
264
}
265
265
266
-
ret = -ENOMEM;
267
-
s->s_root = d_alloc_root(root_inode);
268
-
if (!s->s_root)
269
-
goto out_iput;
270
-
271
-
if (!(s->s_flags & MS_RDONLY)) {
272
-
if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */
273
-
ms->s_state &= ~MINIX_VALID_FS;
274
-
mark_buffer_dirty(bh);
275
-
}
276
-
if (!(sbi->s_mount_state & MINIX_VALID_FS))
277
-
printk("MINIX-fs: mounting unchecked file system, "
278
-
"running fsck is recommended\n");
279
-
else if (sbi->s_mount_state & MINIX_ERROR_FS)
280
-
printk("MINIX-fs: mounting file system with errors, "
281
-
"running fsck is recommended\n");
282
-
283
266
/* Apparently minix can create filesystems that allocate more blocks for
284
267
* the bitmaps than needed. We simply ignore that, but verify it didn't
285
268
* create one with not enough blocks and bail out if so.
···
282
299
"zmap blocks allocated. Refusing to mount.\n");
283
300
goto out_iput;
284
301
}
302
+
303
+
ret = -ENOMEM;
304
+
s->s_root = d_alloc_root(root_inode);
305
+
if (!s->s_root)
306
+
goto out_iput;
307
+
308
+
if (!(s->s_flags & MS_RDONLY)) {
309
+
if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */
310
+
ms->s_state &= ~MINIX_VALID_FS;
311
+
mark_buffer_dirty(bh);
312
+
}
313
+
if (!(sbi->s_mount_state & MINIX_VALID_FS))
314
+
printk("MINIX-fs: mounting unchecked file system, "
315
+
"running fsck is recommended\n");
316
+
else if (sbi->s_mount_state & MINIX_ERROR_FS)
317
+
printk("MINIX-fs: mounting file system with errors, "
318
+
"running fsck is recommended\n");
285
319
286
320
return 0;
287
321