xfs: move xfs_attr_use_log_assist out of xfs_log.c
authorDarrick J. Wong <djwong@kernel.org>
Fri, 27 May 2022 00:33:29 +0000 (10:33 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 27 May 2022 00:33:29 +0000 (10:33 +1000)
commitd9c61ccb3b09d8f892cccbf662ce0c870f8e4ade
treedcefed5bba354f77aa24a82de7a1e8a71b9522d7
parent202865cc215d135762ea99abda7d87925b1cfc7a
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>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/xfs_log.c
fs/xfs/xfs_super.c
fs/xfs/xfs_super.h
fs/xfs/xfs_xattr.c
fs/xfs/xfs_xattr.h [new file with mode: 0644]