]> git.itanic.dy.fi Git - linux-stable/commit
xfs: add missing assert in xfs_fsmap_owner_from_rmap
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Sep 2022 12:56:42 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:09 +0000 (11:04 +0200)
commita102869fb173b8b1fcbe782c7effa6d738f41b86
tree4241aaad40cf400fe5ccf25979f57f439d29840e
parent979eb1230413fb50f71995534d2f517ed67e07c9
xfs: add missing assert in xfs_fsmap_owner_from_rmap

commit 110f09cb705af8c53f2a457baf771d2935ed62d4 upstream.

The fsmap handler shouldn't fail silently if the rmap code ever feeds it
a special owner number that isn't known to the fsmap handler.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_fsmap.c