HomeFreeBSD

Starting LBA is a 64bit number, so use htole64 instead of htole32. The

Description

Starting LBA is a 64bit number, so use htole64 instead of htole32. The
latter casts the LBA to a 32-bit number before assigning it to the 64
bit structure entity. This works fine on the first 2TB of TRIMs, but
terrible beyond that due to trucation.

Also, add an assert to make sure we don't end too many DSM TRIM
entries in one request.

Sponsored by: Netflix

Details

Provenance
impAuthored on
Parents
rS331238: Make kern.cam.nda.num_trim tunable to limit the number of BIO_DELETE
Branches
Unknown
Tags
Unknown