Source kernel commit:
535e2f75c4e377e6ccc9d4396695b516d118f8f0
This patch adds a debug option to enable log attribute replay. Eventually
this can be removed when delayed attrs becomes permanent.
Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
struct xfs_dquot {
int q_type;
};
+
+struct xfs_globals {
+#ifdef DEBUG
+ bool larp; /* log attribute replay */
+#endif
+};
+extern struct xfs_globals xfs_globals;
+
#endif /* __XFS_MOUNT_H__ */
spin_unlock(&mp->m_sb_lock);
}
+struct xfs_globals xfs_globals = {
+#ifdef DEBUG
+ .larp = false, /* log attribute replay */
+#endif
+};
+
void xfs_ag_geom_health(struct xfs_perag *pag, struct xfs_ag_geometry *ageo) { }
static inline bool xfs_has_larp(struct xfs_mount *mp)
{
+#ifdef DEBUG
+ return xfs_globals.larp;
+#else
return false;
+#endif
}
/*