summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/qcom_scm-32.c
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2016-07-12 22:31:23 +0200
committerTejun Heo <tj@kernel.org>2016-07-12 22:37:17 +0200
commit2983860c766870b701c4a34f435c1e18db086244 (patch)
treec9c084dc70f54fd860baead437e37f3e1ae9844b /drivers/firmware/qcom_scm-32.c
parentlibata-scsi: reject WRITE SAME (16) with n_block that exceeds limit (diff)
downloadlinux-2983860c766870b701c4a34f435c1e18db086244.tar.xz
linux-2983860c766870b701c4a34f435c1e18db086244.zip
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/firmware/qcom_scm-32.c')
0 files changed, 0 insertions, 0 deletions