From: Lukas Czerner Date: Thu, 8 Nov 2012 19:04:52 +0000 (-0500) Subject: ext4: warn when discard request fails other than EOPNOTSUPP X-Git-Tag: v3.8-rc1~89^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d71c1ae23aa3e7822715c63dc242de6d73002541;p=pandora-kernel.git ext4: warn when discard request fails other than EOPNOTSUPP We should warn user then the discard request fails. However we need to exclude -EOPNOTSUPP case since parts of the device might not support it while other parts can. So print the kernel warning when the error != -EOPNOTSUPP is returned from ext4_issue_discard(). We should also handle error cases in batched discard, again excluding EOPNOTSUPP. Reviewed-by: Carlos Maiolino Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed