summaryrefslogtreecommitdiff
path: root/scripts/lib/abi/helpers.py
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2025-02-12 09:18:12 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2025-03-27 15:18:02 +0300
commita36e0ab44cb344728f7c0fdc34edcbae64739c16 (patch)
tree475d7f98754d91aca78c2dee40676ebae4533bcd /scripts/lib/abi/helpers.py
parent1a9239bb4253f9076b5b4b2a1a4e8d7defd77a95 (diff)
downloadlinux-a36e0ab44cb344728f7c0fdc34edcbae64739c16.tar.xz
exfat: support batch discard of clusters when freeing clusters
If the discard mount option is enabled, the file's clusters are discarded when the clusters are freed. Discarding clusters one by one will significantly reduce performance. Poor performance may cause soft lockup when lots of clusters are freed. This commit improves performance by discarding contiguous clusters in batches. Measure the performance by: # truncate -s 80G /mnt/file # time rm /mnt/file Without this commit: real 4m46.183s user 0m0.000s sys 0m12.863s With this commit: real 0m1.661s user 0m0.000s sys 0m0.017s Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/lib/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions