aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ext4_fs_extents.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-10-11 04:21:07 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:16 -0400
commitd0d856e8bd6e697cb44b2b4dd038f3bec576a70e (patch)
treec069f410d607e40faf30107efe719dc2d068283b /include/linux/ext4_fs_extents.h
parent471d4011a9862efff02094388b8fe8cd67683c38 (diff)
[PATCH] ext4: clean up comments in ext4-extents patch
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/ext4_fs_extents.h')
-rw-r--r--include/linux/ext4_fs_extents.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/include/linux/ext4_fs_extents.h b/include/linux/ext4_fs_extents.h
index 0eba0acf6ba6..a41cc24568ca 100644
--- a/include/linux/ext4_fs_extents.h
+++ b/include/linux/ext4_fs_extents.h
@@ -22,29 +22,29 @@
22#include <linux/ext4_fs.h> 22#include <linux/ext4_fs.h>
23 23
24/* 24/*
25 * with AGRESSIVE_TEST defined capacity of index/leaf blocks 25 * With AGRESSIVE_TEST defined, the capacity of index/leaf blocks
26 * become very little, so index split, in-depth growing and 26 * becomes very small, so index split, in-depth growing and
27 * other hard changes happens much more often 27 * other hard changes happen much more often.
28 * this is for debug purposes only 28 * This is for debug purposes only.
29 */ 29 */
30#define AGRESSIVE_TEST_ 30#define AGRESSIVE_TEST_
31 31
32/* 32/*
33 * with EXTENTS_STATS defined number of blocks and extents 33 * With EXTENTS_STATS defined, the number of blocks and extents
34 * are collected in truncate path. they'll be showed at 34 * are collected in the truncate path. They'll be shown at
35 * umount time 35 * umount time.
36 */ 36 */
37#define EXTENTS_STATS__ 37#define EXTENTS_STATS__
38 38
39/* 39/*
40 * if CHECK_BINSEARCH defined, then results of binary search 40 * If CHECK_BINSEARCH is defined, then the results of the binary search
41 * will be checked by linear search 41 * will also be checked by linear search.
42 */ 42 */
43#define CHECK_BINSEARCH__ 43#define CHECK_BINSEARCH__
44 44
45/* 45/*
46 * if EXT_DEBUG is defined you can use 'extdebug' mount option 46 * If EXT_DEBUG is defined you can use the 'extdebug' mount option
47 * to get lots of info what's going on 47 * to get lots of info about what's going on.
48 */ 48 */
49#define EXT_DEBUG__ 49#define EXT_DEBUG__
50#ifdef EXT_DEBUG 50#ifdef EXT_DEBUG
@@ -54,58 +54,58 @@
54#endif 54#endif
55 55
56/* 56/*
57 * if EXT_STATS is defined then stats numbers are collected 57 * If EXT_STATS is defined then stats numbers are collected.
58 * these number will be displayed at umount time 58 * These number will be displayed at umount time.
59 */ 59 */
60#define EXT_STATS_ 60#define EXT_STATS_
61 61
62 62
63/* 63/*
64 * ext4_inode has i_block array (60 bytes total) 64 * ext4_inode has i_block array (60 bytes total).
65 * first 12 bytes store ext4_extent_header 65 * The first 12 bytes store ext4_extent_header;
66 * the remain stores array of ext4_extent 66 * the remainder stores an array of ext4_extent.
67 */ 67 */
68 68
69/* 69/*
70 * this is extent on-disk structure 70 * This is the extent on-disk structure.
71 * it's used at the bottom of the tree 71 * It's used at the bottom of the tree.
72 */ 72 */
73struct ext4_extent { 73struct ext4_extent {
74 __le32 ee_block; /* first logical block extent covers */ 74 __le32 ee_block; /* first logical block extent covers */
75 __le16 ee_len; /* number of blocks covered by extent */ 75 __le16 ee_len; /* number of blocks covered by extent */
76 __le16 ee_start_hi; /* high 16 bits of physical block */ 76 __le16 ee_start_hi; /* high 16 bits of physical block */
77 __le32 ee_start; /* low 32 bigs of physical block */ 77 __le32 ee_start; /* low 32 bits of physical block */
78}; 78};
79 79
80/* 80/*
81 * this is index on-disk structure 81 * This is index on-disk structure.
82 * it's used at all the levels, but the bottom 82 * It's used at all the levels except the bottom.
83 */ 83 */
84struct ext4_extent_idx { 84struct ext4_extent_idx {
85 __le32 ei_block; /* index covers logical blocks from 'block' */ 85 __le32 ei_block; /* index covers logical blocks from 'block' */
86 __le32 ei_leaf; /* pointer to the physical block of the next * 86 __le32 ei_leaf; /* pointer to the physical block of the next *
87 * level. leaf or next index could bet here */ 87 * level. leaf or next index could be there */
88 __le16 ei_leaf_hi; /* high 16 bits of physical block */ 88 __le16 ei_leaf_hi; /* high 16 bits of physical block */
89 __u16 ei_unused; 89 __u16 ei_unused;
90}; 90};
91 91
92/* 92/*
93 * each block (leaves and indexes), even inode-stored has header 93 * Each block (leaves and indexes), even inode-stored has header.
94 */ 94 */
95struct ext4_extent_header { 95struct ext4_extent_header {
96 __le16 eh_magic; /* probably will support different formats */ 96 __le16 eh_magic; /* probably will support different formats */
97 __le16 eh_entries; /* number of valid entries */ 97 __le16 eh_entries; /* number of valid entries */
98 __le16 eh_max; /* capacity of store in entries */ 98 __le16 eh_max; /* capacity of store in entries */
99 __le16 eh_depth; /* has tree real underlaying blocks? */ 99 __le16 eh_depth; /* has tree real underlying blocks? */
100 __le32 eh_generation; /* generation of the tree */ 100 __le32 eh_generation; /* generation of the tree */
101}; 101};
102 102
103#define EXT4_EXT_MAGIC cpu_to_le16(0xf30a) 103#define EXT4_EXT_MAGIC cpu_to_le16(0xf30a)
104 104
105/* 105/*
106 * array of ext4_ext_path contains path to some extent 106 * Array of ext4_ext_path contains path to some extent.
107 * creation/lookup routines use it for traversal/splitting/etc 107 * Creation/lookup routines use it for traversal/splitting/etc.
108 * truncate uses it to simulate recursive walking 108 * Truncate uses it to simulate recursive walking.
109 */ 109 */
110struct ext4_ext_path { 110struct ext4_ext_path {
111 ext4_fsblk_t p_block; 111 ext4_fsblk_t p_block;