xfs: complain about bad file mapping records in the ondisk bmbt
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:05 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:05 +0000 (19:00 -0700)
commit6a3bd8fcf9afb47c703cb268f30f60aa2e7af86a
treef8853f97098e6394e60fdd7cc07ae74d48257d72
parentee12eaaa435a7be17152ac50943ee77249de624a
xfs: complain about bad file mapping records in the ondisk bmbt

Similar to what we've just done for the other btrees, create a function
to log corrupt bmbt records and call it whenever we encounter a bad
record in the ondisk btree.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_inode_fork.c