xfs: properly handle free inodes in extent hint validators
authorEric Sandeen <sandeen@redhat.com>
Tue, 24 Jul 2018 18:34:52 +0000 (11:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Jul 2018 18:34:52 +0000 (11:34 -0700)
commitd4a34e16555708bab5b67e679a95f055d8ef9882
treeea3ef619e713031fb23f3e9afec9cca495a09a21
parent9991274fddb9fd4413cb166763cf7368f5086419
xfs: properly handle free inodes in extent hint validators

When inodes are freed in xfs_ifree(), di_flags is cleared (so extent size
hints are removed) but the actual extent size fields are left intact.
This causes the extent hint validators to fail on freed inodes which once
had extent size hints.

This can be observed (for example) by running xfs/229 twice on a
non-crc xfs filesystem, or presumably on V5 with ikeep.

Fixes: 7d71a67 ("xfs: verify extent size hint is valid in inode verifier")
Fixes: 02a0fda ("xfs: verify COW extent size hint is valid in inode verifier")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_inode_buf.c