summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/test_stackcollapse_python.sh
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2026-09-14 22:37:52 -0700
committerCarlos Maiolino <cem@kernel.org>2026-09-17 11:27:41 +0200
commitab1c416d2377cdc16123ef521aac4da1c468c3d4 (patch)
tree040c1abac1c46ca54faefabf24e268fd5a253eb6 /tools/perf/tests/shell/test_stackcollapse_python.sh
parentd7b92cbe566f6fe54368f62e4b515d9f80c43a18 (diff)
downloadlinux-next-ab1c416d2377cdc16123ef521aac4da1c468c3d4.tar.gz
linux-next-ab1c416d2377cdc16123ef521aac4da1c468c3d4.zip
xfs: don't let memory failures leak blocks and kill repairs
LOLLM complains that a memory allocation failure in xrep_newbt_add_blocks results in online repair leaking blocks that were previously allocated to write a new btree, but the problem is worse than that -- a limitation of the codebase is that the callers cannot undo the transaction /and/ return the error -- either you undo all changes and commit the transaction, or you error out and the filesystem goes down. However, the new btree space reservation object isn't that big (~48 bytes). Let's just do a NOFAIL allocation and the problem goes away. Cc: stable@vger.kernel.org # v6.8 Fixes: be408417630427 ("xfs: implement block reservation accounting for btrees we're staging") 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/perf/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions