Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105850
b: refs/heads/master
c: 3ccc316
h: refs/heads/master
v: v3
  • Loading branch information
Duane Griffin authored and Linus Torvalds committed Jul 25, 2008
1 parent 0bd8583 commit c575f5b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95450f5a7e53d5752ce1a0d0b8282e10fe745ae0
refs/heads/master: 3ccc3167b0e5d46ab3bf03e22fbdb7616ce038cd
16 changes: 15 additions & 1 deletion trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,21 @@ static void ext3_free_data(handle_t *handle, struct inode *inode,

if (this_bh) {
BUFFER_TRACE(this_bh, "call ext3_journal_dirty_metadata");
ext3_journal_dirty_metadata(handle, this_bh);

/*
* The buffer head should have an attached journal head at this
* point. However, if the data is corrupted and an indirect
* block pointed to itself, it would have been detached when
* the block was cleared. Check for this instead of OOPSing.
*/
if (bh2jh(this_bh))
ext3_journal_dirty_metadata(handle, this_bh);
else
ext3_error(inode->i_sb, "ext3_free_data",
"circular indirect block detected, "
"inode=%lu, block=%llu",
inode->i_ino,
(unsigned long long)this_bh->b_blocknr);
}
}

Expand Down

0 comments on commit c575f5b

Please sign in to comment.