From: Lukas Czerner Date: Tue, 16 Oct 2012 09:38:06 +0000 (+0200) Subject: jfs: Fix FITRIM argument handling X-Git-Tag: v3.7-rc3~46^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e7a4b01222343481d8ff084dbef9b80f7089a19;p=pandora-kernel.git jfs: Fix FITRIM argument handling Currently when 'range->start' is beyond the end of file system nothing is done and that fact is ignored, where in fact we should return EINVAL. The same problem is when 'range.len' is smaller than file system block. Fix this by adding check for such conditions and return EINVAL appropriately. Signed-off-by: Lukas Czerner Acked-by: Tino Reichardt Signed-off-by: Dave Kleikamp --- Reading git-diff-tree failed