gfs2: remove the unused sd_log_error field
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Jun 2017 07:37:56 +0000 (09:37 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 9 Jun 2017 15:27:32 +0000 (09:27 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/gfs2/incore.h
fs/gfs2/lops.c

index b7cf65d13561fedf98a72dfc66b36e70d84100cd..aa3d44527fa2e92a9372761cc727e3b5c404e785 100644 (file)
@@ -815,7 +815,6 @@ struct gfs2_sbd {
        atomic_t sd_log_in_flight;
        struct bio *sd_log_bio;
        wait_queue_head_t sd_log_flush_wait;
-       int sd_log_error;
 
        atomic_t sd_reserving_log;
        wait_queue_head_t sd_reserving_log_wait;
index b1f9144b42c7fd6ae4f0f24f82adaf142bfa4922..13ebf15a4db0e34ffb0ffb3475ab9a28f8c470c5 100644 (file)
@@ -209,10 +209,8 @@ static void gfs2_end_log_write(struct bio *bio)
        struct page *page;
        int i;
 
-       if (bio->bi_error) {
-               sdp->sd_log_error = bio->bi_error;
+       if (bio->bi_error)
                fs_err(sdp, "Error %d writing to log\n", bio->bi_error);
-       }
 
        bio_for_each_segment_all(bvec, bio, i) {
                page = bvec->bv_page;