summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_fsmap.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-11-02 17:41:18 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-05 17:28:27 +0100
commit110f09cb705af8c53f2a457baf771d2935ed62d4 (patch)
tree9c8bc3908853ed2e1faad235c68c86e7d058a77a /fs/xfs/xfs_fsmap.c
parentxfs: decrease indenting problems in xfs_dabuf_map (diff)
downloadlinux-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.c1
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;