summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-12-07 10:41:46 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-12-09 09:49:38 -0800
commita5336d6bb2d02d0e9d4d3c8be04b80b8b68d56c8 (patch)
treef5eeb7bd07bbebd4c7b0fdda47d6d3c92064697a /usr
parent2e984badbcc0f1cf284441c566ca4309fe59ac05 (diff)
xfs: fix the forward progress assertion in xfs_iwalk_run_callbacks
In commit 27c14b5daa82 we started tracking the last inode seen during an inode walk to avoid infinite loops if a corrupt inobt record happens to have a lower ir_startino than the record preceeding it. Unfortunately, the assertion trips over the case where there are completely empty inobt records (which can happen quite easily on 64k page filesystems) because we advance the tracking cursor without actually putting the empty record into the processing buffer. Fix the assert to allow for this case. Reported-by: zlang@redhat.com Fixes: 27c14b5daa82 ("xfs: ensure inobt record walks always make forward progress") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions