In quota_compute_usage(), the space usage should be in bytes but
not quota block.
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
if (ino == 0)
break;
if (inode.i_links_count) {
- /* Convert i_blocks to # of 1k blocks */
- space = (ext2fs_inode_i_blocks(fs, &inode) + 1) >> 1;
+ space = ext2fs_inode_i_blocks(fs, &inode) << 9;
quota_data_add(qctx, &inode, ino, space);
quota_data_inodes(qctx, &inode, ino, +1);
}