diff options
| author | Jan Kara <[email protected]> | 2014-06-06 06:06:37 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2014-06-06 06:06:37 +0000 |
| commit | 30265117ee1e23fa91920f337a3ea91207f700dc (patch) | |
| tree | 92bc5cec785f90d64f8e5f42baa0ce185b0c3cfb /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | xfs: tone down writepage/releasepage WARN_ONs (diff) | |
| download | kernel-30265117ee1e23fa91920f337a3ea91207f700dc.tar.gz kernel-30265117ee1e23fa91920f337a3ea91207f700dc.zip | |
xfs: Fix rounding in xfs_alloc_fix_len()
Rounding in xfs_alloc_fix_len() is wrong. As the comment states, the
result should be a number of a form (k*prod+mod) however due to sign
mistake the result is different. As a result allocations on raid arrays
could be misaligned in some cases.
This also seems to fix occasional assertion failure:
XFS_WANT_CORRUPTED_GOTO(rlen <= flen, error0)
in xfs_alloc_ag_vextent_size().
Also add an assertion that the result of xfs_alloc_fix_len() is of
expected form.
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
