diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-11-17 16:00:47 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-12-03 08:46:35 +0100 |
commit | 18f0f97850059303ed73b1f02084f55ca330a80c (patch) | |
tree | 6b3f91f521d3d35f864138bd7e8962eb346a09c4 /drivers/ata/sata_fsl.c | |
parent | libata: retry failed FLUSH if device didn't fail it (diff) | |
download | linux-18f0f97850059303ed73b1f02084f55ca330a80c.tar.xz linux-18f0f97850059303ed73b1f02084f55ca330a80c.zip |
libata: add translation for SCSI WRITE SAME (aka TRIM support)
Add support for the ATA TRIM command in libata. We translate a WRITE SAME 16
command with the unmap bit set into an ATA TRIM command and export enough
information in READ CAPACITY 16 and the block limits EVPD page so that the new
SCSI layer discard support will driver this for us.
Note that I hardcode the WRITE_SAME_16 opcode for now as the patch to introduce
the symbolic is not in 2.6.32 yet but only in the SCSI tree - as soon as it is
merged we can fix it up to properly use the symbolic name.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_fsl.c')
0 files changed, 0 insertions, 0 deletions