Skip to content

Commit

Permalink
gfs2: remove the unused sd_log_error field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Jun 9, 2017
1 parent 10f64ec commit f729b66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion fs/gfs2/incore.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions fs/gfs2/lops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f729b66

Please sign in to comment.