diff options
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r-- | fs/xfs/xfs_error.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 339f9d4a49cd..a4634d94e561 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c | |||
@@ -133,10 +133,14 @@ xfs_errortag_add(int error_tag, xfs_mount_t *mp) | |||
133 | } | 133 | } |
134 | 134 | ||
135 | int | 135 | int |
136 | xfs_errortag_clearall_umount(int64_t fsid, char *fsname, int loud) | 136 | xfs_errortag_clearall(xfs_mount_t *mp, int loud) |
137 | { | 137 | { |
138 | int i; | 138 | int64_t fsid; |
139 | int cleared = 0; | 139 | int cleared = 0; |
140 | int i; | ||
141 | |||
142 | memcpy(&fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t)); | ||
143 | |||
140 | 144 | ||
141 | for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { | 145 | for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { |
142 | if ((fsid == 0LL || xfs_etest_fsid[i] == fsid) && | 146 | if ((fsid == 0LL || xfs_etest_fsid[i] == fsid) && |
@@ -155,20 +159,10 @@ xfs_errortag_clearall_umount(int64_t fsid, char *fsname, int loud) | |||
155 | if (loud || cleared) | 159 | if (loud || cleared) |
156 | cmn_err(CE_WARN, | 160 | cmn_err(CE_WARN, |
157 | "Cleared all XFS error tags for filesystem \"%s\"", | 161 | "Cleared all XFS error tags for filesystem \"%s\"", |
158 | fsname); | 162 | mp->m_fsname); |
159 | 163 | ||
160 | return 0; | 164 | return 0; |
161 | } | 165 | } |
162 | |||
163 | int | ||
164 | xfs_errortag_clearall(xfs_mount_t *mp) | ||
165 | { | ||
166 | int64_t fsid; | ||
167 | |||
168 | memcpy(&fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t)); | ||
169 | |||
170 | return xfs_errortag_clearall_umount(fsid, mp->m_fsname, 1); | ||
171 | } | ||
172 | #endif /* DEBUG || INDUCE_IO_ERROR */ | 166 | #endif /* DEBUG || INDUCE_IO_ERROR */ |
173 | 167 | ||
174 | static void | 168 | static void |