From: Jan Kara Date: Mon, 10 Jan 2011 17:30:39 +0000 (-0500) Subject: ext4: fix trimming of a single group X-Git-Tag: v2.6.37.1~143 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d597eb5d470de0073e9e7feaa7413918699579b;p=pandora-kernel.git ext4: fix trimming of a single group commit ca6e909f9bebe709bc65a3ee605ce32969db0452 upstream. When ext4_trim_fs() is called to trim a part of a single group, the logic will wrongly set last block of the interval to 'len' instead of 'first_block + len'. Thus a shorter interval is possibly trimmed. Fix it. CC: Lukas Czerner Signed-off-by: Jan Kara Signed-off-by: "Theodore Ts'o" Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed