summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2016-07-13 04:31:23 +0800
committerTejun Heo <tj@kernel.org>2016-07-12 16:37:17 -0400
commit2983860c766870b701c4a34f435c1e18db086244 (patch)
treec9c084dc70f54fd860baead437e37f3e1ae9844b /sound
parent5c79097a28c2525740dd9e4470676ec9d25bee45 (diff)
downloadop-kernel-dev-2983860c766870b701c4a34f435c1e18db086244.zip
op-kernel-dev-2983860c766870b701c4a34f435c1e18db086244.tar.gz
libata-scsi: avoid repeated calculation of number of TRIM ranges
Currently libata statically allows only 1-block (512-byte) payload for each TRIM command. Each payload can carry 64 TRIM ranges since each range requires 8 bytes. It is silly to keep doing the calculation (512 / 8) in different places. Hence, define the new ATA_MAX_TRIM_RNUM for the result. Signed-off-by: Tom Yan <tom.ty89@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud