summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_attr.h
diff options
context:
space:
mode:
authorAllison Henderson <allison.henderson@oracle.com>2022-05-11 17:01:22 +1000
committerDave Chinner <david@fromorbit.com>2022-05-11 17:01:22 +1000
commit535e2f75c4e377e6ccc9d4396695b516d118f8f0 (patch)
tree2d4aa30293fab2ab22e82c01e73e39da8c33e5cb /fs/xfs/libxfs/xfs_attr.h
parentabd61ca3c333506ffa4ee73b78659ab57e7efcf7 (diff)
downloadlinux-535e2f75c4e377e6ccc9d4396695b516d118f8f0.tar.gz
linux-535e2f75c4e377e6ccc9d4396695b516d118f8f0.tar.bz2
linux-535e2f75c4e377e6ccc9d4396695b516d118f8f0.zip
xfs: Add larp debug option
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.h b/fs/xfs/libxfs/xfs_attr.h
index 5331551d5939..78884e826ca4 100644
--- a/fs/xfs/libxfs/xfs_attr.h
+++ b/fs/xfs/libxfs/xfs_attr.h
@@ -30,7 +30,11 @@ struct xfs_attr_list_context;
static inline bool xfs_has_larp(struct xfs_mount *mp)
{
+#ifdef DEBUG
+ return xfs_globals.larp;
+#else
return false;
+#endif
}
/*