git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xfs: report inode corruption errors to the health system
[sfrench/cifs-2.6.git]
/
fs
/
xfs
/
xfs_inode.c
diff --git
a/fs/xfs/xfs_inode.c
b/fs/xfs/xfs_inode.c
index ab2d891b8d146ad05a0cae27a1af21611a591a42..5d0ac5c733f3d2d6382cd67e4e3c49fa033fbf41 100644
(file)
--- a/
fs/xfs/xfs_inode.c
+++ b/
fs/xfs/xfs_inode.c
@@
-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;
}