]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebba1740968cb14d2b94a07ea19bb11d1ca4b623
tree60e929882a83c1c779ff63b1ed8fef98cf2c07e7
parentf761883a4b4803a92468b6b55b84f8b80b89bce6
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