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:39:10 -0700
committerCarlos Maiolino <cem@kernel.org>2026-09-17 11:27:41 +0200
commit476582d754cdc5110f806001417fea6c77824c13 (patch)
tree6264b5168ee449138bfe3fc7471f6b0eb2afe1ec /tools/perf/tests/shell/test_stackcollapse_python.sh
parentffb48dccce1960a9ea24463a2f3c21d124d6b672 (diff)
downloadlinux-next-476582d754cdc5110f806001417fea6c77824c13.tar.gz
linux-next-476582d754cdc5110f806001417fea6c77824c13.zip
xfs: don't let hidden_space go negative in xfs_metafile_resv_init
LOLLM points out that if the amount of fdblocks that we can reserve for a metadata btree file goes below the space already used by that file, then the hidden_space subtraction can underflow, causing xfs_dec_fdblocks to subtract a huge amount of space. We never want the target to be less than the used sapce, so fix the logic that adjusts dblocks_avail downwards. Also fix an error in the adjacent comment. Cc: stable@vger.kernel.org # v6.15 Fixes: 1df8d75030b787 ("xfs: make metabtree reservations global") 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