From: Darrick J. Wong Date: Sat, 2 Nov 2019 16:41:18 +0000 (-0700) Subject: xfs: add missing assert in xfs_fsmap_owner_from_rmap X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=110f09cb705af8c53f2a457baf771d2935ed62d4;p=linux.git xfs: add missing assert in xfs_fsmap_owner_from_rmap 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 Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/xfs_fsmap.c b/fs/xfs/xfs_fsmap.c index d082143feb5ab..918456ca29e16 100644 --- a/fs/xfs/xfs_fsmap.c +++ b/fs/xfs/xfs_fsmap.c @@ -146,6 +146,7 @@ xfs_fsmap_owner_from_rmap( dest->fmr_owner = XFS_FMR_OWN_FREE; break; default: + ASSERT(0); return -EFSCORRUPTED; } return 0;