nilfs2: integrated block mapping
authorKoji Sato <[email protected]>
Tue, 7 Apr 2009 02:01:23 +0000 (19:01 -0700)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2009 15:31:13 +0000 (08:31 -0700)
commitbdb265eae08db578e7cf5739be16f389d495fc75
tree34f3b37b067504b945e851ef2a8ead07347a27df
parent65b4643d3babeb203fa9571d12fd5e1bf74d27b0
nilfs2: integrated block mapping

This adds structures and operations for the block mapping (bmap for
short).  NILFS2 uses direct mappings for short files or B-tree based
mappings for longer files.

Every on-disk data block is held with inodes and managed through this
block mapping.  The nilfs_bmap structure and a set of functions here
provide this capability to the NILFS2 inode.

[[email protected]: remove a bunch of bmap wrapper macros]
[[email protected]: coding-style fixes]
Signed-off-by: Koji Sato <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/nilfs2/bmap.c [new file with mode: 0644]
fs/nilfs2/bmap.h [new file with mode: 0644]
fs/nilfs2/bmap_union.h [new file with mode: 0644]