From: Jie Liu Date: Tue, 21 Jan 2014 23:48:34 +0000 (-0800) Subject: ocfs2: return EOPNOTSUPP if the device does not support discard X-Git-Tag: v3.14-rc1~134^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e8ac2721148a475833d7b5f893f9b81fbb0045;p=pandora-kernel.git ocfs2: return EOPNOTSUPP if the device does not support discard For FITRIM ioctl(2), we should return EOPNOTSUPP to inform the user that the storage device does not support discard if it is, otherwise return success would confuse the user even though there is no free blocks were trimmed at all. Signed-off-by: Jie Liu Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed