In current NOVA design, inode sees logic block,
the physical block is managed by its own size.
Both the logic block and physcial block derived
from sb->s_blocksize_bits, meaning logic block
and physical block are essential the same.
The prefered block size for each inode comes
from i_blk_type, 4KB by default.
When setting i_blk_type to 2MB huge page,
In nova_new_blocks, blocks to be allocated
are 512, in 4KB unit. It does not make sense
to scale the num of blocks w.r.t btype again.
In current NOVA design, inode sees logic block, the physical block is managed by its own size. Both the logic block and physcial block derived from sb->s_blocksize_bits, meaning logic block and physical block are essential the same.
The prefered block size for each inode comes from i_blk_type, 4KB by default.
When setting i_blk_type to 2MB huge page, In nova_new_blocks, blocks to be allocated are 512, in 4KB unit. It does not make sense to scale the num of blocks w.r.t btype again.
Signed-off-by: Fan Du fan.du@intel.com