Skip to content

Commit

Permalink
buffer: use mapping_set_error instead of setting the flag
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
  • Loading branch information
jtlayton committed Jul 6, 2017
1 parent af21bfa commit d945b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static void __remove_assoc_queue(struct buffer_head *bh)
list_del_init(&bh->b_assoc_buffers);
WARN_ON(!bh->b_assoc_map);
if (buffer_write_io_error(bh))
set_bit(AS_EIO, &bh->b_assoc_map->flags);
mapping_set_error(bh->b_assoc_map, -EIO);
bh->b_assoc_map = NULL;
}

Expand Down

0 comments on commit d945b59

Please sign in to comment.