summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-11-02 09:41:18 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-05 08:28:27 -0800
commit110f09cb705af8c53f2a457baf771d2935ed62d4 (patch)
tree9c8bc3908853ed2e1faad235c68c86e7d058a77a
parentee4fb16cbec9aa1ce6e837d143f411ee42df1bb5 (diff)
downloadlinux-110f09cb705af8c53f2a457baf771d2935ed62d4.tar.bz2
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>
-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;