diff options
author | 2019-04-26 07:30:24 -0700 | |
---|---|---|
committer | 2019-04-26 12:28:56 -0700 | |
commit | 1749d1ea89bdf3181328b7d846e609d5a0e53e50 (patch) | |
tree | 436747e75f979cde4c5191c91ebdca80c43de657 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfs: scrub should check incore counters against ondisk headers (diff) | |
download | linux-dev-1749d1ea89bdf3181328b7d846e609d5a0e53e50.tar.xz linux-dev-1749d1ea89bdf3181328b7d846e609d5a0e53e50.zip |
xfs: add missing error check in xfs_prepare_shift()
xfs_prepare_shift() fails to check the error return from
xfs_flush_unmap_range(). If the latter fails, that could lead to an
insert/collapse range operation over a delalloc range, which is not
supported.
Add an error check and return appropriately. This is reproduced
rarely by generic/475.
Fixes: 7f9f71be84bc ("xfs: extent shifting doesn't fully invalidate page cache")
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions