]> 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)
commit3fd01381ebd33223f22adc3735db89fe59b0e181
tree60e929882a83c1c779ff63b1ed8fef98cf2c07e7
parentcffc1ae2f83e4f85f98201fe0a729ef03406e4eb
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