Whamcloud - gitweb
LU-14712 ldiskfs: add bg_trimmed_threshold interface 67/55567/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 28 Jun 2024 02:18:50 +0000 (12:18 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Jul 2024 20:10:40 +0000 (20:10 +0000)
commit7ac01793a3d451700fee3be6b655c4494ee158aa
treec0765665a41606a91f24e49fc1d2108e7d536dc3
parent6b8270f4a932d8e2c0875444f7ad5e33f766d153
LU-14712 ldiskfs: add bg_trimmed_threshold interface

Export interface bg_trimmed_threshold via sysfs, and only clear
BG_TRIMMED flag when there are enough blocks freed since
last fstrim(default 128).

Make sure we use cpu_to_le32() with EXT2_FLAGS_TRACK_TRIM.

Change-Id: I98d86f6d7335af53b8e74c747797b0dff3abb5d0
Test-Parameters: trivial
Fixes: ad30edf910 ("LU-14712 ldiskfs: introduce EXT4_BG_TRIMMED to optimize fstrim")
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55567
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel7.9/ext4-introduce-EXT4_BG_TRIMMED-to-optimize-fstrim.patch
ldiskfs/kernel_patches/patches/rhel8.7/ext4-introduce-EXT4_BG_TRIMMED-to-optimize-fstrim.patch [new file with mode: 0644]
ldiskfs/kernel_patches/patches/rhel9/ext4-introduce-EXT4_BG_TRIMMED-to-optimize-fstrim.patch
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.10.series
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.7.series
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.8.series
ldiskfs/kernel_patches/series/ldiskfs-4.18-rhel8.9.series