ext4: convert number of blocks to clusters properly
authorLukas Czerner <lczerner@redhat.com>
Sat, 2 Mar 2013 22:18:58 +0000 (17:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:04:36 +0000 (10:04 -0700)
commit46c14b9d861886d7abb66088ffeafa9301a34397
tree69e2b64b43849c8a936cdf807cd350ee7365b372
parent4025b05599996ca2866ceec0606c77d2ce2b4830
ext4: convert number of blocks to clusters properly

commit 810da240f221d64bf90020f25941b05b378186fe upstream.

We're using macro EXT4_B2C() to convert number of blocks to number of
clusters for bigalloc file systems.  However, we should be using
EXT4_NUM_B2C().

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Lingzhu Xiang <lxiang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/balloc.c
fs/ext4/mballoc.c
fs/ext4/resize.c