aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2017-07-06 07:02:20 -0400
committerJeff Layton <[email protected]>2017-07-06 07:02:20 -0400
commitd945b59db8449ab8323995391c6a63525b3666f6 (patch)
treeabc54fa63c2abd410beb129335968c1d552bd4ff
parentaf21bfaf70a1358f306588232f741b292d9be5a7 (diff)
buffer: use mapping_set_error instead of setting the flag
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]>
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 161be58c5cb0..4be8b914a222 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -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;
}