]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: attr forks require attr, not attr2
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 20:44:33 +0000 (13:44 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 14 Aug 2024 15:49:14 +0000 (21:19 +0530)
commit73c34b0b85d46bf9c2c0b367aeaffa1e2481b136
tree131b489cdbd3485cd71bc6336ee2552852c63c3a
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
xfs: attr forks require attr, not attr2

It turns out that I misunderstood the difference between the attr and
attr2 feature bits.  "attr" means that at some point an attr fork was
created somewhere in the filesystem.  "attr2" means that inodes have
variable-sized forks, but says nothing about whether or not there
actually /are/ attr forks in the system.

If we have an attr fork, we only need to check that attr is set.

Fixes: 99d9d8d05da26 ("xfs: scrub inode block mappings")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/bmap.c