diff options
Diffstat (limited to 'fs/xfs/xfs_error.h')
-rw-r--r-- | fs/xfs/xfs_error.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h index 279a76e52791..c0394ed126fc 100644 --- a/fs/xfs/xfs_error.h +++ b/fs/xfs/xfs_error.h | |||
@@ -40,25 +40,25 @@ extern void xfs_verifier_error(struct xfs_buf *bp); | |||
40 | /* | 40 | /* |
41 | * Macros to set EFSCORRUPTED & return/branch. | 41 | * Macros to set EFSCORRUPTED & return/branch. |
42 | */ | 42 | */ |
43 | #define XFS_WANT_CORRUPTED_GOTO(x,l) \ | 43 | #define XFS_WANT_CORRUPTED_GOTO(mp, x, l) \ |
44 | { \ | 44 | { \ |
45 | int fs_is_ok = (x); \ | 45 | int fs_is_ok = (x); \ |
46 | ASSERT(fs_is_ok); \ | 46 | ASSERT(fs_is_ok); \ |
47 | if (unlikely(!fs_is_ok)) { \ | 47 | if (unlikely(!fs_is_ok)) { \ |
48 | XFS_ERROR_REPORT("XFS_WANT_CORRUPTED_GOTO", \ | 48 | XFS_ERROR_REPORT("XFS_WANT_CORRUPTED_GOTO", \ |
49 | XFS_ERRLEVEL_LOW, NULL); \ | 49 | XFS_ERRLEVEL_LOW, mp); \ |
50 | error = -EFSCORRUPTED; \ | 50 | error = -EFSCORRUPTED; \ |
51 | goto l; \ | 51 | goto l; \ |
52 | } \ | 52 | } \ |
53 | } | 53 | } |
54 | 54 | ||
55 | #define XFS_WANT_CORRUPTED_RETURN(x) \ | 55 | #define XFS_WANT_CORRUPTED_RETURN(mp, x) \ |
56 | { \ | 56 | { \ |
57 | int fs_is_ok = (x); \ | 57 | int fs_is_ok = (x); \ |
58 | ASSERT(fs_is_ok); \ | 58 | ASSERT(fs_is_ok); \ |
59 | if (unlikely(!fs_is_ok)) { \ | 59 | if (unlikely(!fs_is_ok)) { \ |
60 | XFS_ERROR_REPORT("XFS_WANT_CORRUPTED_RETURN", \ | 60 | XFS_ERROR_REPORT("XFS_WANT_CORRUPTED_RETURN", \ |
61 | XFS_ERRLEVEL_LOW, NULL); \ | 61 | XFS_ERRLEVEL_LOW, mp); \ |
62 | return -EFSCORRUPTED; \ | 62 | return -EFSCORRUPTED; \ |
63 | } \ | 63 | } \ |
64 | } | 64 | } |