Commit f729b66f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

gfs2: remove the unused sd_log_error field

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 10f64ec5
...@@ -815,7 +815,6 @@ struct gfs2_sbd { ...@@ -815,7 +815,6 @@ struct gfs2_sbd {
atomic_t sd_log_in_flight; atomic_t sd_log_in_flight;
struct bio *sd_log_bio; struct bio *sd_log_bio;
wait_queue_head_t sd_log_flush_wait; wait_queue_head_t sd_log_flush_wait;
int sd_log_error;
atomic_t sd_reserving_log; atomic_t sd_reserving_log;
wait_queue_head_t sd_reserving_log_wait; wait_queue_head_t sd_reserving_log_wait;
......
...@@ -209,10 +209,8 @@ static void gfs2_end_log_write(struct bio *bio) ...@@ -209,10 +209,8 @@ static void gfs2_end_log_write(struct bio *bio)
struct page *page; struct page *page;
int i; int i;
if (bio->bi_error) { if (bio->bi_error)
sdp->sd_log_error = bio->bi_error;
fs_err(sdp, "Error %d writing to log\n", bio->bi_error); fs_err(sdp, "Error %d writing to log\n", bio->bi_error);
}
bio_for_each_segment_all(bvec, bio, i) { bio_for_each_segment_all(bvec, bio, i) {
page = bvec->bv_page; page = bvec->bv_page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment