aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_fs.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 14:59:05 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:03 -0400
commitfb86b1f07120b66769a39c445da5c4300069dd44 (patch)
tree4d97d78e2c703b289801a91e3a480fa1620914a8 /fs/ocfs2/ocfs2_fs.h
parentfc881fa0d59596c02f8707b5572567c369d4789a (diff)
ocfs2: Define the contents of the slot_map file.
The slot map file is merely an array of __le16. Wrap it in a structure for cleaner reference. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_fs.h')
-rw-r--r--fs/ocfs2/ocfs2_fs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
index 3633edd3982f..3299116b8021 100644
--- a/fs/ocfs2/ocfs2_fs.h
+++ b/fs/ocfs2/ocfs2_fs.h
@@ -475,6 +475,18 @@ struct ocfs2_extent_block
475}; 475};
476 476
477/* 477/*
478 * On disk slot map for OCFS2. This defines the contents of the "slot_map"
479 * system file.
480 */
481struct ocfs2_slot_map {
482/*00*/ __le16 sm_slots[0];
483/*
484 * Actual on-disk size is one block. OCFS2_MAX_SLOTS is 255,
485 * 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize.
486 */
487};
488
489/*
478 * On disk superblock for OCFS2 490 * On disk superblock for OCFS2
479 * Note that it is contained inside an ocfs2_dinode, so all offsets 491 * Note that it is contained inside an ocfs2_dinode, so all offsets
480 * are relative to the start of ocfs2_dinode.id2. 492 * are relative to the start of ocfs2_dinode.id2.