aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhang Yi <[email protected]>2023-08-24 17:26:05 +0800
committerTheodore Ts'o <[email protected]>2023-10-05 22:32:14 -0400
commit8e387c89e96b9543a339f84043cf9df15fed2632 (patch)
treeeee0562ec32798589fe6f6eb754d40835dd1f461 /tools/perf/scripts/python
parent40ea98396a3659062267d1fe5f99af4f7e4f05e3 (diff)
ext4: make sure allocate pending entry not fail
__insert_pending() allocate memory in atomic context, so the allocation could fail, but we are not handling that failure now. It could lead ext4_es_remove_extent() to get wrong reserved clusters, and the global data blocks reservation count will be incorrect. The same to extents_status entry preallocation, preallocate pending entry out of the i_es_lock with __GFP_NOFAIL, make sure __insert_pending() and __revise_pending() always succeeds. Signed-off-by: Zhang Yi <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions