summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_ep93xx.c
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2016-07-12 23:31:23 +0300
committerTejun Heo <tj@kernel.org>2016-07-12 23:37:17 +0300
commit2983860c766870b701c4a34f435c1e18db086244 (patch)
treec9c084dc70f54fd860baead437e37f3e1ae9844b /drivers/ata/pata_ep93xx.c
parent5c79097a28c2525740dd9e4470676ec9d25bee45 (diff)
downloadlinux-2983860c766870b701c4a34f435c1e18db086244.tar.xz
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 'drivers/ata/pata_ep93xx.c')
0 files changed, 0 insertions, 0 deletions