libata: Expose TRIM capability in sysfs
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 May 2015 01:54:19 +0000 (21:54 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 5 May 2015 13:30:18 +0000 (09:30 -0400)
commitf303074160d3401970ccae082014e1ee5a9a52c5
treea1ab040aa04feaa3c4763779fa07b050a6434528
parentd7b16e4f6283c6ec52b411aa6deb02ca4d030d20
libata: Expose TRIM capability in sysfs

Create a sysfs "trim" attribute for each ata_device that displays
whether DSM TRIM is "unsupported", "unqueued", "forced_unqueued"
(blacklisted) or "queued".

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/ABI/testing/sysfs-ata
drivers/ata/libata-transport.c