Skip to content

Commit f729b66

Browse files
Christoph Hellwigaxboe
authored andcommitted
gfs2: remove the unused sd_log_error field
Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 10f64ec commit f729b66

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

fs/gfs2/incore.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ struct gfs2_sbd {
815815
atomic_t sd_log_in_flight;
816816
struct bio *sd_log_bio;
817817
wait_queue_head_t sd_log_flush_wait;
818-
int sd_log_error;
819818

820819
atomic_t sd_reserving_log;
821820
wait_queue_head_t sd_reserving_log_wait;

fs/gfs2/lops.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ static void gfs2_end_log_write(struct bio *bio)
209209
struct page *page;
210210
int i;
211211

212-
if (bio->bi_error) {
213-
sdp->sd_log_error = bio->bi_error;
212+
if (bio->bi_error)
214213
fs_err(sdp, "Error %d writing to log\n", bio->bi_error);
215-
}
216214

217215
bio_for_each_segment_all(bvec, bio, i) {
218216
page = bvec->bv_page;

0 commit comments

Comments
 (0)