]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: New slot map format
authorJoel Becker <joel.becker@oracle.com>
Fri, 1 Feb 2008 20:06:54 +0000 (12:06 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:03 +0000 (08:56 -0700)
commit860c541d97b782b0cbefcb9804498f157205d39c
tree08b6cae47060497359a6ab78134a1bf8e38012cc
parenta03a5033b4eb9fe9a5f7b29cebc276cf7af8cde6
ocfs2: New slot map format

The old slot map had a few limitations:

- It was limited to one block, so the maximum slot count was 255.
- Each slot was signed 16bits, limiting node numbers to INT16_MAX.
- An empty slot was marked by the magic 0xFFFF (-1).

The new slot map format provides 32bit node numbers (UINT32_MAX), a
separate space to mark a slot in use, and extra room to grow.  The slot
map is now bounded by i_size, not a block.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/ocfs2.h
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/slot_map.c