summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_xattr.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-05-27 03:33:29 +0300
committerDave Chinner <david@fromorbit.com>2022-05-27 03:33:29 +0300
commitd9c61ccb3b09d8f892cccbf662ce0c870f8e4ade (patch)
treedcefed5bba354f77aa24a82de7a1e8a71b9522d7 /fs/xfs/xfs_xattr.h
parent202865cc215d135762ea99abda7d87925b1cfc7a (diff)
downloadlinux-d9c61ccb3b09d8f892cccbf662ce0c870f8e4ade.tar.xz
xfs: move xfs_attr_use_log_assist out of xfs_log.c
The LARP patchset added an awkward coupling point between libxfs and what would be libxlog, if the XFS log were actually its own library. Move the code that enables logged xattr updates out of "lib"xlog and into xfs_xattr.c so that it no longer has to know about xlog_* functions. While we're at it, give xfs_xattr.c its own header file. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_xattr.h')
-rw-r--r--fs/xfs/xfs_xattr.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/xfs_xattr.h b/fs/xfs/xfs_xattr.h
new file mode 100644
index 000000000000..d34ef1835541
--- /dev/null
+++ b/fs/xfs/xfs_xattr.h
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2000-2005 Silicon Graphics, Inc.
+ * All Rights Reserved.
+ */
+#ifndef __XFS_XATTR_H__
+#define __XFS_XATTR_H__
+
+int xfs_attr_grab_log_assist(struct xfs_mount *mp);
+void xfs_attr_rele_log_assist(struct xfs_mount *mp);
+
+extern const struct xattr_handler *xfs_xattr_handlers[];
+
+#endif /* __XFS_XATTR_H__ */