xfs: do not use logged xattr updates on V4 filesystems
authorDarrick J. Wong <djwong@kernel.org>
Sun, 22 May 2022 22:41:03 +0000 (08:41 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 22 May 2022 22:41:03 +0000 (08:41 +1000)
commit22a68ba724232ba675166c307ddef3749ae4c37c
tree60e929882a83c1c779ff63b1ed8fef98cf2c07e7
parente3c5de22026fda01674c400b97f96857dfb58aab
xfs: do not use logged xattr updates on V4 filesystems

V4 superblocks do not contain the log_incompat feature bit, which means
that we cannot protect xattr log items against kernels that are too old
to know how to recover them.  Turn off the log items for such
filesystems and adjust the "delayed" name to reflect what it's really
controlling.

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/libxfs/xfs_attr.h