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

The code that validates recovered rmap 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: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_rmap_item.c