Skip to contentSkip to conversation

buffer: use mapping_set_error instead of setting the flag

PATCH New Jeff Layton 1 participant 1 message May 25, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buffer: use mapping_set_error instead of setting the flag

In later patches, we'll need to use the helper function here instead of twiddling the bits directly.

---
 fs/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/buffer.c +1 -1
index 161be58c5cb0..4be8b914a222 100644
@@ -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;
 }
 
Signature · 1 line
2.9.4