diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-10-12 23:09:07 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-10-14 10:13:51 +0200 |
| commit | 47b1e941bb55f735d82ba2649412260da78b98f8 (patch) | |
| tree | 59e377ed7063d18b942902446ef1ca3af48056b1 /tools/lib/python | |
| parent | 18028768415e3c05ab7edb22d740e2f4dc52836a (diff) | |
| download | linux-next-47b1e941bb55f735d82ba2649412260da78b98f8.tar.gz linux-next-47b1e941bb55f735d82ba2649412260da78b98f8.zip | |
xfs: rescan the AGs if incore delalloc counter is negative
LOLLM complains that percpu_counter_sum can return a negative number but
we instead misinterpret that into a huge unsigned value and do bad
things to fdblocks. It shouldn't do that, so let's add a retry loop and
an attempt to freeze the filesystem to (hopefully) zero out the incore
delalloc counter. It probably won't work, but at least failing the
repair beats doing the wrong thing.
Cc: stable@vger.kernel.org # v5.2
Fixes: 75efa57d0bf5fc ("xfs: add online scrub for superblock counters")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
