fs: use mapping_set_error instead of opencoded set_bit
[cascardo/linux.git] / fs / ext4 / page-io.c
index b4cbee9..0094923 100644 (file)
@@ -88,7 +88,7 @@ static void ext4_finish_bio(struct bio *bio)
 
                if (bio->bi_error) {
                        SetPageError(page);
-                       set_bit(AS_EIO, &page->mapping->flags);
+                       mapping_set_error(page->mapping, -EIO);
                }
                bh = head = page_buffers(page);
                /*