projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee4fb16
)
xfs: add missing assert in xfs_fsmap_owner_from_rmap
author
Darrick J. Wong
<darrick.wong@oracle.com>
Sat, 2 Nov 2019 16:41:18 +0000
(09:41 -0700)
committer
Darrick 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
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_fsmap.c
b/fs/xfs/xfs_fsmap.c
index
d082143
..
918456c
100644
(file)
--- 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;