>
> (*)
http://lkml.org/lkml/2008/6/23/126
>
> This patch depends on the following patch set in -mm:
>
> #1 jbd: abort when failed to log metadata buffers
>
http://lkml.org/lkml/2008/7/24/160
> #2 jbd: fix error handling for checkpoint io
>
http://lkml.org/lkml/2008/7/24/163
> #3 ext3: add checks for errors from jbd
>
http://lkml.org/lkml/2008/7/29/539
> #4 jbd: don't dirty original metadata buffer on abort
>
http://lkml.org/lkml/2008/7/24/168
>
> Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
> ---
> fs/jbd/checkpoint.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: linux-2.6.27-rc5-mm1/fs/jbd/checkpoint.c
> ===================================================================
> --- linux-2.6.27-rc5-mm1.orig/fs/jbd/checkpoint.c
> +++ linux-2.6.27-rc5-mm1/fs/jbd/checkpoint.c
> @@ -94,7 +94,7 @@ static int __try_to_free_cp_buf(struct j
> 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);
> @@ -214,7 +214,7 @@ restart:
> spin_lock(&journal->j_list_lock);
> goto restart;
> }
> - if (unlikely(!buffer_uptodate(bh)))
> + if (unlikely(buffer_write_io_error(bh)))
> ret = -EIO;
>
> /*
> @@ -283,7 +283,7 @@ static int __process_buffer(journal_t *j
> 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");
>
>