ext4: ext4_get_reserved_space() must return bytes instead of blocks
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 9 Dec 2009 03:41:52 +0000 (22:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 9 Dec 2009 03:41:52 +0000 (22:41 -0500)
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c

index 0e2ea572856c67504130f94648c3a7c9627dbea9..2da74f57a10b55ac17b1ab37ac654fdd0cc0a61d 100644 (file)
@@ -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