]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ocfs2: De-magic the in-memory slot map.
authorJoel Becker <joel.becker@oracle.com>
Fri, 1 Feb 2008 20:04:48 +0000 (12:04 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:03 +0000 (08:56 -0700)
commitfc881fa0d59596c02f8707b5572567c369d4789a
tree1925db8ac3262ebd343d85ec5e9de799d2e3afd9
parent1c8d9a6a330f46b3a6ddd204a2580131d5f0d6b7
ocfs2: De-magic the in-memory slot map.

The in-memory slot map uses the same magic as the on-disk one.  There is
a special value to mark a slot as invalid.  It relies on the size of
certain types and so on.

Write a new in-memory map that keeps validity as a separate field.  Outside
of the I/O functions, OCFS2_INVALID_SLOT now means what it is supposed to.
It also is no longer tied to the type size.

This also means that only the I/O functions refer to 16bit quantities.

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