diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2009-12-08 22:41:52 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-12-08 22:41:52 -0500 |
commit | 8aa6790f876e81f5a2211fe1711a5fe3fe2d7b20 (patch) | |
tree | d82eef7f6753858a08640b226bece35dfca3c52d /fs | |
parent | b844167edc7fcafda9623955c05e4c1b3c32ebc7 (diff) |
ext4: ext4_get_reserved_space() must return bytes instead of blocks
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>
Diffstat (limited to 'fs')
-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 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) | |||
1010 | EXT4_I(inode)->i_reserved_meta_blocks; | 1010 | EXT4_I(inode)->i_reserved_meta_blocks; |
1011 | spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); | 1011 | spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); |
1012 | 1012 | ||
1013 | return total; | 1013 | return (total << inode->i_blkbits); |
1014 | } | 1014 | } |
1015 | /* | 1015 | /* |
1016 | * Calculate the number of metadata blocks need to reserve | 1016 | * Calculate the number of metadata blocks need to reserve |