diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2009-12-08 22:41:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-14 09:45:21 -0800 |
commit | 6798788a72ee430761aa41c02f770ee3afb9c212 (patch) | |
tree | 6c5f9dea29f17c5d3dd74ff1fa5725e160e0e17e /fs/ext4 | |
parent | 637b13106b744398b530fe916eb1556aeb7f6bca (diff) |
ext4: ext4_get_reserved_space() must return bytes instead of blocks
(cherry picked from commit 8aa6790f876e81f5a2211fe1711a5fe3fe2d7b20)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 87406c61eca..86469775cca 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1052,7 +1052,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 |