|
@@ -1264,6 +1264,12 @@ static void ext3_orphan_cleanup (struct super_block * sb,
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (bdev_read_only(sb->s_bdev)) {
|
|
|
|
+ printk(KERN_ERR "EXT3-fs: write access "
|
|
|
|
+ "unavailable, skipping orphan cleanup.\n");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (EXT3_SB(sb)->s_mount_state & EXT3_ERROR_FS) {
|
|
if (EXT3_SB(sb)->s_mount_state & EXT3_ERROR_FS) {
|
|
if (es->s_last_orphan)
|
|
if (es->s_last_orphan)
|
|
jbd_debug(1, "Errors on filesystem, "
|
|
jbd_debug(1, "Errors on filesystem, "
|