@@ -550,7 +550,7 @@ repeat:
get_bh(bh);
spin_unlock(lock);
wait_on_buffer(bh);
- if (!buffer_uptodate(bh))
+ if (buffer_write_io_error(bh))
err = -EIO;
brelse(bh);
spin_lock(lock);
@@ -810,7 +810,7 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list)
}
spin_unlock(lock);
wait_on_buffer(bh);
- if (!buffer_uptodate(bh))
+ if (buffer_write_io_error(bh))
err = -EIO;
brelse(bh);
spin_lock(lock);
@@ -3039,7 +3039,7 @@ int __sync_dirty_buffer(struct buffer_head *bh, int rw)
bh->b_end_io = end_buffer_write_sync;
ret = submit_bh(rw, bh);
wait_on_buffer(bh);
- if (!ret && !buffer_uptodate(bh))
+ if (!ret && buffer_write_io_error(bh))
ret = -EIO;
} else {
unlock_buffer(bh);
Convert a few remaining checks for write IO error in VFS using !buffer_uptodate test to using buffer_write_io_error. Signed-off-by: Jan Kara <jack@suse.cz> --- fs/buffer.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)