aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2025-07-07 22:08:07 +0800
committerTheodore Ts'o <tytso@mit.edu>2025-07-13 23:41:51 -0400
commit2bddafea3d0d85ee9ac3cf5ba9a4b2f2d2f50257 (patch)
tree50fe0bac381e757018b00bd85abfe5bcebd9646f /tools/perf/scripts/python/bin
parentext4: fix stale data if it bail out of the extents mapping loop (diff)
downloadlinux-2bddafea3d0d85ee9ac3cf5ba9a4b2f2d2f50257.tar.gz
linux-2bddafea3d0d85ee9ac3cf5ba9a4b2f2d2f50257.zip
ext4: refactor the block allocation process of ext4_page_mkwrite()
The block allocation process and error handling in ext4_page_mkwrite() is complex now. Refactor it by introducing a new helper function, ext4_block_page_mkwrite(). It will call ext4_block_write_begin() to allocate blocks instead of directly calling block_page_mkwrite(). Preparing to implement retry logic in a subsequent patch to address situations where the reserved journal credits are insufficient. Additionally, this modification will help prevent potential deadlocks that may occur when waiting for folio writeback while holding the transaction handle. Suggested-by: Jan Kara <jack@suse.cz> Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20250707140814.542883-5-yi.zhang@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions