NVSL / linux-nova

NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
http://nvsl.ucsd.edu/index.php?path=projects/nova
Other
421 stars 118 forks source link

Drop nova_get_numblocks when caculate blocks to be allocated #66

Closed fengyuleidian0615 closed 6 years ago

fengyuleidian0615 commented 6 years ago

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

fengyuleidian0615 commented 6 years ago

Ignore this version, it will break other path. WIP on a another version.

fengyuleidian0615 commented 6 years ago

Close the ticket to open another one.