summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/slot_map.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 12:04:48 -0800
committerMark Fasheh <mfasheh@suse.com>2008-04-18 08:56:03 -0700
commitfc881fa0d59596c02f8707b5572567c369d4789a (patch)
tree1925db8ac3262ebd343d85ec5e9de799d2e3afd9 /fs/ocfs2/slot_map.h
parent1c8d9a6a330f46b3a6ddd204a2580131d5f0d6b7 (diff)
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>
Diffstat (limited to 'fs/ocfs2/slot_map.h')
-rw-r--r--fs/ocfs2/slot_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/slot_map.h b/fs/ocfs2/slot_map.h
index 5118e89c84e..601c95fd700 100644
--- a/fs/ocfs2/slot_map.h
+++ b/fs/ocfs2/slot_map.h
@@ -39,6 +39,6 @@ int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
unsigned int *node_num);
-int ocfs2_clear_slot(struct ocfs2_super *osb, s16 slot_num);
+int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
#endif