fs: use mapping_set_error instead of opencoded set_bit
[cascardo/linux.git] / fs / exofs / inode.c
index d42ff52..d8072bc 100644 (file)
@@ -778,7 +778,7 @@ try_again:
 fail:
        EXOFS_DBGMSG("Error: writepage_strip(0x%lx, 0x%lx)=>%d\n",
                     inode->i_ino, page->index, ret);
-       set_bit(AS_EIO, &page->mapping->flags);
+       mapping_set_error(page->mapping, -EIO);
        unlock_page(page);
        return ret;
 }