xfs: revert commit 44af6c7e59b12
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:00 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:01 +0000 (07:47 -0700)
commit2a009397eb5ae178670cbd7101e9635cf6412b35
treea2779eb1c6393495721b17f6ac57b4e8402e34f2
parent67ac7091e35bd34b75c0ec77331b53ca052e0cb3
xfs: revert commit 44af6c7e59b12

In my haste to fix what I thought was a performance problem in the attr
scrub code, I neglected to notice that the xfs_attr_get_ilocked also had
the effect of checking that attributes can actually be looked up through
the attr dabtree.  Fix this.

Fixes: 44af6c7e59b12 ("xfs: don't load local xattr values during scrub")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/attr.c