On Wed, 3 Nov 2021 15:51:22 +0100, Lukas Czerner wrote: > Ext4 has an optimization mechanism for batched disacrd (FITRIM) that > should help speed up subsequent calls of FITRIM ioctl by skipping the > groups that were previously trimmed. However because the FITRIM allows > to set the minimum size of an extent to trim, ext4 stores the last > minimum extent size and only avoids trimming the group if it was > previously trimmed with minimum extent size equal to, or smaller than > the current call. > > [...] Applied, thanks! [2/2] ext4: Allow to change s_last_trim_minblks via sysfs commit: db19c4cdc28a8ec1241d50656991ab1bd96f5c02 Best regards, -- Theodore Ts'o <tytso@xxxxxxx>