From: Arne Fitzenreiter Date: Wed, 15 Jul 2015 11:54:36 +0000 (+0200) Subject: libata: add ATA_HORKAGE_NOTRIM X-Git-Tag: v3.2.71~23 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ceea41b03e5d31fc9781373cca839dd882c9b58;p=pandora-kernel.git libata: add ATA_HORKAGE_NOTRIM commit 71d126fd28de2d4d9b7b2088dbccd7ca62fad6e0 upstream. Some devices lose data on TRIM whether queued or not. This patch adds a horkage to disable TRIM. tj: Collapsed unnecessary if() nesting. Signed-off-by: Arne Fitzenreiter Signed-off-by: Tejun Heo [bwh: Backported to 3.2: - Adjust context - Drop change to show_ata_dev_trim()] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed