ext4: fix wrong assert in ext4_mb_normalize_request()
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 27 May 2014 16:48:56 +0000 (12:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 16:48:56 +0000 (12:48 -0400)
commitb5b60778558cafad17bbcbf63e0310bd3c68eb17
treeb06fa811548579ac50f5956c72e9f04879aba9b6
parenteeece469dedadf3918bad50ad80f4616a0064e90
ext4: fix wrong assert in ext4_mb_normalize_request()

The variable "size" is expressed as number of blocks and not as
number of clusters, this could trigger a kernel panic when using
ext4 with the size of a cluster different from the size of a block.

Cc: stable@vger.kernel.org
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c