xfs: refactor xfs_is_using_logged_xattrs checks in attr item recovery
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:41 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:46:56 +0000 (07:46 -0700)
commita918f5f2cd2c9d2bf94f485c5cebbf47fb0627df
treeb5e00ab04a05289a6f7647a3863b1b764a8e8a36
parentf041455eb5773eda3291903ad6d1f33d4798e9a2
xfs: refactor xfs_is_using_logged_xattrs checks in attr item recovery

Move this feature check down to the per-op checks so that we can ensure
that we never see parent pointer attr items on non-pptr filesystems, and
that logged xattrs are turned on for non-pptr attr items.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_attr_item.c