Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105849
b: refs/heads/master
c: 95450f5
h: refs/heads/master
i:
  105847: f1ed8fb
v: v3
  • Loading branch information
Hidehiro Kawai authored and Linus Torvalds committed Jul 25, 2008
1 parent 06543fe commit 0bd8583
Show file tree
Hide file tree
Showing 2 changed files with 11 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: ae76dd9a6b5bbe5315fb7028e03f68f75b8538f3
refs/heads/master: 95450f5a7e53d5752ce1a0d0b8282e10fe745ae0
10 changes: 10 additions & 0 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2521,6 +2521,16 @@ static int __ext3_get_inode_loc(struct inode *inode,
}
if (!buffer_uptodate(bh)) {
lock_buffer(bh);

/*
* If the buffer has the write error flag, we have failed
* to write out another inode in the same block. In this
* case, we don't have to read the block because we may
* read the old inode data successfully.
*/
if (buffer_write_io_error(bh) && !buffer_uptodate(bh))
set_buffer_uptodate(bh);

if (buffer_uptodate(bh)) {
/* someone brought it uptodate while we waited */
unlock_buffer(bh);
Expand Down

0 comments on commit 0bd8583

Please sign in to comment.