Skip to content
Commit 6920b391 authored by Wang Jianchao's avatar Wang Jianchao Committed by Theodore Ts'o
Browse files

ext4: add new helper interface ext4_try_to_trim_range()



There is no functional change in this patch but just split the
codes, which serachs free block and does trim, into a new function
ext4_try_to_trim_range. This is preparing for the following async
backgroup discard.

Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
Signed-off-by: default avatarWang Jianchao <wangjianchao@kuaishou.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210724074124.25731-3-jianchao.wan9@gmail.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent bd2eea8d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment