Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
fs/xfs/xfs_fsmap.c
··· 146 146 dest->fmr_owner = XFS_FMR_OWN_FREE; 147 147 break; 148 148 default: 149 + ASSERT(0); 149 150 return -EFSCORRUPTED; 150 151 } 151 152 return 0;