#include "xfs_rtrefcount_btree.h"
#include "xfs_metafile.h"
+#include <linux/fserror.h>
+
/*
* Write new AG headers to disk. Non-transactional, but need to be
* written and completed prior to the growfs transaction being logged.
"Please unmount the filesystem and rectify the problem(s)");
if (xfs_error_level >= XFS_ERRLEVEL_HIGH)
xfs_stack_trace();
+
+ fserror_report_shutdown(mp->m_super, GFP_KERNEL);
}
/*
#include "xfs_quota_defs.h"
#include "xfs_rtgroup.h"
+#include <linux/fserror.h>
+
static void
xfs_health_unmount_group(
struct xfs_group *xg,
spin_lock(&mp->m_sb_lock);
mp->m_fs_sick |= mask;
spin_unlock(&mp->m_sb_lock);
+
+ fserror_report_metadata(mp->m_super, -EFSCORRUPTED, GFP_NOFS);
}
/* Mark per-fs metadata as having been checked and found unhealthy by fsck. */
mp->m_fs_sick |= mask;
mp->m_fs_checked |= mask;
spin_unlock(&mp->m_sb_lock);
+
+ fserror_report_metadata(mp->m_super, -EFSCORRUPTED, GFP_NOFS);
}
/* Mark a per-fs metadata healed. */
spin_lock(&xg->xg_state_lock);
xg->xg_sick |= mask;
spin_unlock(&xg->xg_state_lock);
+
+ fserror_report_metadata(xg->xg_mount->m_super, -EFSCORRUPTED, GFP_NOFS);
}
/*
xg->xg_sick |= mask;
xg->xg_checked |= mask;
spin_unlock(&xg->xg_state_lock);
+
+ fserror_report_metadata(xg->xg_mount->m_super, -EFSCORRUPTED, GFP_NOFS);
}
/*
spin_lock(&VFS_I(ip)->i_lock);
inode_state_clear(VFS_I(ip), I_DONTCACHE);
spin_unlock(&VFS_I(ip)->i_lock);
+
+ fserror_report_file_metadata(VFS_I(ip), -EFSCORRUPTED, GFP_NOFS);
}
/* Mark inode metadata as having been checked and found unhealthy by fsck. */
spin_lock(&VFS_I(ip)->i_lock);
inode_state_clear(VFS_I(ip), I_DONTCACHE);
spin_unlock(&VFS_I(ip)->i_lock);
+
+ fserror_report_file_metadata(VFS_I(ip), -EFSCORRUPTED, GFP_NOFS);
}
/* Mark parts of an inode healed. */