Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42937
b: refs/heads/master
c: a8f48a9
h: refs/heads/master
i:
  42935: 4244ef6
v: v3
  • Loading branch information
Eric Sandeen authored and Linus Torvalds committed Dec 7, 2006
1 parent 6f6700e commit 52c4b17
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0e7688df1484fbf4d6d61c31f7d61a5d8cacf3c
refs/heads/master: a8f48a95619cbce8f85423480e7d0a1bf971a62b
6 changes: 6 additions & 0 deletions trunk/fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,12 @@ static void ext3_orphan_cleanup (struct super_block * sb,
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 (es->s_last_orphan)
jbd_debug(1, "Errors on filesystem, "
Expand Down
6 changes: 6 additions & 0 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,12 @@ static void ext4_orphan_cleanup (struct super_block * sb,
return;
}

if (bdev_read_only(sb->s_bdev)) {
printk(KERN_ERR "EXT4-fs: write access "
"unavailable, skipping orphan cleanup.\n");
return;
}

if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) {
if (es->s_last_orphan)
jbd_debug(1, "Errors on filesystem, "
Expand Down

0 comments on commit 52c4b17

Please sign in to comment.