summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorCarlos Maiolino <cmaiolino@redhat.com>2016-05-18 11:01:00 +1000
committerDave Chinner <david@fromorbit.com>2016-05-18 11:01:00 +1000
commitffd40ef697dfd3e06f44b1bb5fea93079de8c77d (patch)
treebd0c6c9286e453b6076c43033d0a4a86ab752727 /fs/xfs/xfs_mount.h
parent192852be8b5fb14268c2133fe9ce5312e4745963 (diff)
xfs: introduce metadata IO error class
Now we have the basic infrastructure, add the first error class so we can build up the infrastructure in a meaningful way. Add the metadata async write IO error class and sysfs entry, and introduce a default configuration that matches the existing "retry forever" behavior for async write metadata buffers. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index d639795b0310..352a5c88d7e9 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -44,9 +44,11 @@ enum {
* Error numbers define the errors that are configurable.
*/
enum {
+ XFS_ERR_METADATA,
XFS_ERR_CLASS_MAX,
};
enum {
+ XFS_ERR_DEFAULT,
XFS_ERR_ERRNO_MAX,
};
@@ -146,6 +148,7 @@ typedef struct xfs_mount {
/* low free space thresholds */
struct xfs_kobj m_kobj;
struct xfs_kobj m_error_kobj;
+ struct xfs_kobj m_error_meta_kobj;
struct xfs_error_cfg m_error_cfg[XFS_ERR_CLASS_MAX][XFS_ERR_ERRNO_MAX];
struct xstats m_stats; /* per-fs stats */