Skip to content

Commit

Permalink
ext4: ext4_get_reserved_space() must return bytes instead of blocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Monakhov authored and Theodore Ts'o committed Dec 9, 2009
1 parent b844167 commit 8aa6790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aa6790

Please sign in to comment.