]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: improve the code that checks recovered bmap intent items
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Nov 2020 00:33:36 +0000 (16:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commita933058c077d9fabc0ca045e83be655496f30e9c
treeca785ad160e2c21003e49693a43226059c2fabc5
parentb397b65644ac39ea7b3052de0722d4d09ee352e2
xfs: improve the code that checks recovered bmap intent items

The code that validates recovered bmap intent items is kind of a mess --
it doesn't use the standard xfs type validators, and it doesn't check
for things that it should.  Fix the validator function to use the
standard validation helpers and look for more types of obvious errors.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_bmap_item.c