xfs: report inode corruption errors to the health system
[sfrench/cifs-2.6.git] / fs / xfs / xfs_inode.c
index ab2d891b8d146ad05a0cae27a1af21611a591a42..5d0ac5c733f3d2d6382cd67e4e3c49fa033fbf41 100644 (file)
@@ -3422,6 +3422,8 @@ flush_out:
 
        /* generate the checksum. */
        xfs_dinode_calc_crc(mp, dip);
+       if (error)
+               xfs_inode_mark_sick(ip, XFS_SICK_INO_CORE);
        return error;
 }