diff options
| author | Tommi Rantala <[email protected]> | 2020-03-12 07:43:53 -0700 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2020-03-13 10:37:13 -0700 |
| commit | 3d28e7e278913a267b1de360efcd5e5274065ce2 (patch) | |
| tree | a272dbc5868529172a2cad79fae983cc3202f493 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 17bb60b74124e9491d593e2601e3afe14daa2f57 (diff) | |
xfs: fix regression in "cleanup xfs_dir2_block_getdents"
Commit 263dde869bd09 ("xfs: cleanup xfs_dir2_block_getdents") introduced
a getdents regression, when it converted the pointer arithmetics to
offset calculations: offset is updated in the loop already for the next
iteration, but the updated offset value is used incorrectly in two
places, where we should have used the not-yet-updated value.
This caused for example "git clean -ffdx" failures to cleanup certain
directory structures when running in a container.
Fix the regression by making sure we use proper offset in the loop body.
Thanks to Christoph Hellwig for suggestion how to best fix the code.
Cc: Christoph Hellwig <[email protected]>
Fixes: 263dde869bd09 ("xfs: cleanup xfs_dir2_block_getdents")
Signed-off-by: Tommi Rantala <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions