xfs: add missing assert in xfs_fsmap_owner_from_rmap
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 2 Nov 2019 16:41:18 +0000 (09:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 16:28:27 +0000 (08:28 -0800)
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>
fs/xfs/xfs_fsmap.c

index d082143..918456c 100644 (file)
@@ -146,6 +146,7 @@ xfs_fsmap_owner_from_rmap(
                dest->fmr_owner = XFS_FMR_OWN_FREE;
                break;
        default:
+               ASSERT(0);
                return -EFSCORRUPTED;
        }
        return 0;