From: Dmitry Monakhov Date: Wed, 9 Dec 2009 03:41:52 +0000 (-0500) Subject: ext4: ext4_get_reserved_space() must return bytes instead of blocks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8aa6790f876e81f5a2211fe1711a5fe3fe2d7b20;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ext4: ext4_get_reserved_space() must return bytes instead of blocks Signed-off-by: Dmitry Monakhov Reviewed-by: Eric Sandeen Acked-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 0e2ea572856c..2da74f57a10b 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1010,7 +1010,7 @@ qsize_t ext4_get_reserved_space(struct inode *inode) EXT4_I(inode)->i_reserved_meta_blocks; spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); - return total; + return (total << inode->i_blkbits); } /* * Calculate the number of metadata blocks need to reserve