diff options
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r-- | fs/xfs/xfs_error.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index edac5b057d28..b92fd7bc49e3 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c | |||
@@ -27,29 +27,6 @@ | |||
27 | 27 | ||
28 | #ifdef DEBUG | 28 | #ifdef DEBUG |
29 | 29 | ||
30 | int xfs_etrap[XFS_ERROR_NTRAP] = { | ||
31 | 0, | ||
32 | }; | ||
33 | |||
34 | int | ||
35 | xfs_error_trap(int e) | ||
36 | { | ||
37 | int i; | ||
38 | |||
39 | if (!e) | ||
40 | return 0; | ||
41 | for (i = 0; i < XFS_ERROR_NTRAP; i++) { | ||
42 | if (xfs_etrap[i] == 0) | ||
43 | break; | ||
44 | if (e != xfs_etrap[i]) | ||
45 | continue; | ||
46 | xfs_notice(NULL, "%s: error %d", __func__, e); | ||
47 | BUG(); | ||
48 | break; | ||
49 | } | ||
50 | return e; | ||
51 | } | ||
52 | |||
53 | int xfs_etest[XFS_NUM_INJECT_ERROR]; | 30 | int xfs_etest[XFS_NUM_INJECT_ERROR]; |
54 | int64_t xfs_etest_fsid[XFS_NUM_INJECT_ERROR]; | 31 | int64_t xfs_etest_fsid[XFS_NUM_INJECT_ERROR]; |
55 | char * xfs_etest_fsname[XFS_NUM_INJECT_ERROR]; | 32 | char * xfs_etest_fsname[XFS_NUM_INJECT_ERROR]; |
@@ -190,7 +167,7 @@ xfs_verifier_error( | |||
190 | struct xfs_mount *mp = bp->b_target->bt_mount; | 167 | struct xfs_mount *mp = bp->b_target->bt_mount; |
191 | 168 | ||
192 | xfs_alert(mp, "Metadata %s detected at %pF, block 0x%llx", | 169 | xfs_alert(mp, "Metadata %s detected at %pF, block 0x%llx", |
193 | bp->b_error == EFSBADCRC ? "CRC error" : "corruption", | 170 | bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", |
194 | __return_address, bp->b_bn); | 171 | __return_address, bp->b_bn); |
195 | 172 | ||
196 | xfs_alert(mp, "Unmount and run xfs_repair"); | 173 | xfs_alert(mp, "Unmount and run xfs_repair"); |