diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-02-01 15:04:48 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 11:56:03 -0400 |
commit | fc881fa0d59596c02f8707b5572567c369d4789a (patch) | |
tree | 1925db8ac3262ebd343d85ec5e9de799d2e3afd9 /fs/ocfs2/ocfs2.h | |
parent | 1c8d9a6a330f46b3a6ddd204a2580131d5f0d6b7 (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/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index c6ed8c35de0d..95f783dbe8b2 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -216,10 +216,10 @@ struct ocfs2_super | |||
216 | unsigned long s_mount_opt; | 216 | unsigned long s_mount_opt; |
217 | unsigned int s_atime_quantum; | 217 | unsigned int s_atime_quantum; |
218 | 218 | ||
219 | u16 max_slots; | 219 | unsigned int max_slots; |
220 | s16 node_num; | 220 | s16 node_num; |
221 | s16 slot_num; | 221 | int slot_num; |
222 | s16 preferred_slot; | 222 | int preferred_slot; |
223 | int s_sectsize_bits; | 223 | int s_sectsize_bits; |
224 | int s_clustersize; | 224 | int s_clustersize; |
225 | int s_clustersize_bits; | 225 | int s_clustersize_bits; |