]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xfs_alloc_get_rec should return EFSCORRUPTED for obvious bnobt corruption
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Jun 2018 23:10:14 +0000 (16:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Jun 2018 21:45:30 +0000 (14:45 -0700)
commitf16662ad2191b856b2d422d9c7f0aee37735f930
tree054adcbb4fc9396a8587fc2b64475fada77bfccf
parent6c9abcb2d88d7ab66106f3cd215bfac5fb7268cd
xfs: xfs_alloc_get_rec should return EFSCORRUPTED for obvious bnobt corruption

Return -EFSCORRUPTED when the bnobt/cntbt return obviously corrupt
values, rather than letting them bounce around in the internal code.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_alloc.c