aboutsummaryrefslogtreecommitdiffstats
path: root/init/do_mounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r--init/do_mounts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index c2de5104aad2..f6d4dd764a52 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -373,7 +373,7 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data)
373 printk(KERN_INFO 373 printk(KERN_INFO
374 "VFS: Mounted root (%s filesystem)%s on device %u:%u.\n", 374 "VFS: Mounted root (%s filesystem)%s on device %u:%u.\n",
375 s->s_type->name, 375 s->s_type->name,
376 s->s_flags & MS_RDONLY ? " readonly" : "", 376 sb_rdonly(s) ? " readonly" : "",
377 MAJOR(ROOT_DEV), MINOR(ROOT_DEV)); 377 MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
378 return 0; 378 return 0;
379} 379}
@@ -420,8 +420,8 @@ retry:
420#endif 420#endif
421 panic("VFS: Unable to mount root fs on %s", b); 421 panic("VFS: Unable to mount root fs on %s", b);
422 } 422 }
423 if (!(flags & MS_RDONLY)) { 423 if (!(flags & SB_RDONLY)) {
424 flags |= MS_RDONLY; 424 flags |= SB_RDONLY;
425 goto retry; 425 goto retry;
426 } 426 }
427 427