Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116974
b: refs/heads/master
c: 9f818b4
h: refs/heads/master
v: v3
  • Loading branch information
Hidehiro Kawai authored and Linus Torvalds committed Oct 23, 2008
1 parent cf2caf1 commit 27efad1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2d7c820e56ce83b23daee9eb5343730fb309418e
refs/heads/master: 9f818b4ac04f53458d0354950b4f229f54be4dbf
6 changes: 3 additions & 3 deletions trunk/fs/jbd/checkpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int __try_to_free_cp_buf(struct journal_head *jh)
struct buffer_head *bh = jh2bh(jh);

if (jh->b_jlist == BJ_None && !buffer_locked(bh) &&
!buffer_dirty(bh) && buffer_uptodate(bh)) {
!buffer_dirty(bh) && !buffer_write_io_error(bh)) {
JBUFFER_TRACE(jh, "remove from checkpoint list");
ret = __journal_remove_checkpoint(jh) + 1;
jbd_unlock_bh_state(bh);
Expand Down Expand Up @@ -199,7 +199,7 @@ static int __wait_cp_io(journal_t *journal, transaction_t *transaction)
spin_lock(&journal->j_list_lock);
goto restart;
}
if (unlikely(!buffer_uptodate(bh)))
if (unlikely(buffer_write_io_error(bh)))
ret = -EIO;

/*
Expand Down Expand Up @@ -268,7 +268,7 @@ static int __process_buffer(journal_t *journal, struct journal_head *jh,
ret = 1;
} else if (!buffer_dirty(bh)) {
ret = 1;
if (unlikely(!buffer_uptodate(bh)))
if (unlikely(buffer_write_io_error(bh)))
ret = -EIO;
J_ASSERT_JH(jh, !buffer_jbddirty(bh));
BUFFER_TRACE(bh, "remove from checkpoint");
Expand Down

0 comments on commit 27efad1

Please sign in to comment.