]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix trimming of a single group
authorJan Kara <jack@suse.cz>
Mon, 10 Jan 2011 17:30:39 +0000 (12:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:30:39 +0000 (12:30 -0500)
commitf7a8ceace090d5d509a1b5860908d751625a2c54
treedb7d324b995ff5fe74dcce00c9bf8c4da3adc5e3
parent7d1e43b14bbe505a992687431d97d1bcff40da61
ext4: fix trimming of a single group

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 <lczerner@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c