diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-02 17:41:18 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-05 17:28:27 +0100 |
commit | 110f09cb705af8c53f2a457baf771d2935ed62d4 (patch) | |
tree | 9c8bc3908853ed2e1faad235c68c86e7d058a77a /fs/xfs/xfs_fsmap.c | |
parent | xfs: decrease indenting problems in xfs_dabuf_map (diff) | |
download | linux-110f09cb705af8c53f2a457baf771d2935ed62d4.tar.xz linux-110f09cb705af8c53f2a457baf771d2935ed62d4.zip |
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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_fsmap.c')
-rw-r--r-- | fs/xfs/xfs_fsmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_fsmap.c b/fs/xfs/xfs_fsmap.c index d082143feb5a..918456ca29e1 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; |