diff options
author | 2022-05-27 10:33:29 +1000 | |
---|---|---|
committer | 2022-05-27 10:33:29 +1000 | |
commit | d9c61ccb3b09d8f892cccbf662ce0c870f8e4ade (patch) | |
tree | dcefed5bba354f77aa24a82de7a1e8a71b9522d7 /fs/xfs/xfs_xattr.h | |
parent | xfs: warn about LARP once per mount (diff) | |
download | linux-d9c61ccb3b09d8f892cccbf662ce0c870f8e4ade.tar.gz linux-d9c61ccb3b09d8f892cccbf662ce0c870f8e4ade.tar.bz2 linux-d9c61ccb3b09d8f892cccbf662ce0c870f8e4ade.zip |
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.h | 14 |
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__ */ |