aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ext4_fs_i.h
diff options
context:
space:
mode:
authorAlex Tomas <alex@clusterfs.com>2006-10-11 04:21:03 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:16 -0400
commita86c61812637c7dd0c57e29880cffd477b62f2e7 (patch)
tree10737307293afde2999a887cfeac32c7d7584aa7 /include/linux/ext4_fs_i.h
parentc3fcc8137ce4296ad6ab94f88bd60cbe03d21527 (diff)
[PATCH] ext3: add extent map support
On disk extents format: /* * this is extent on-disk structure * it's used at the bottom of the tree */ struct ext3_extent { __le32 ee_block; /* first logical block extent covers */ __le16 ee_len; /* number of blocks covered by extent */ __le16 ee_start_hi; /* high 16 bits of physical block */ __le32 ee_start; /* low 32 bigs of physical block */ }; Signed-off-by: Alex Tomas <alex@clusterfs.com> 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_i.h')
-rw-r--r--include/linux/ext4_fs_i.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/ext4_fs_i.h b/include/linux/ext4_fs_i.h
index 18a6ce98537f..40ce04a52b04 100644
--- a/include/linux/ext4_fs_i.h
+++ b/include/linux/ext4_fs_i.h
@@ -65,6 +65,16 @@ struct ext4_block_alloc_info {
65#define rsv_end rsv_window._rsv_end 65#define rsv_end rsv_window._rsv_end
66 66
67/* 67/*
68 * storage for cached extent
69 */
70struct ext4_ext_cache {
71 __u32 ec_start;
72 __u32 ec_block;
73 __u32 ec_len; /* must be 32bit to return holes */
74 __u32 ec_type;
75};
76
77/*
68 * third extended file system inode data in memory 78 * third extended file system inode data in memory
69 */ 79 */
70struct ext4_inode_info { 80struct ext4_inode_info {
@@ -142,6 +152,9 @@ struct ext4_inode_info {
142 */ 152 */
143 struct mutex truncate_mutex; 153 struct mutex truncate_mutex;
144 struct inode vfs_inode; 154 struct inode vfs_inode;
155
156 unsigned long i_ext_generation;
157 struct ext4_ext_cache i_cached_extent;
145}; 158};
146 159
147#endif /* _LINUX_EXT4_FS_I */ 160#endif /* _LINUX_EXT4_FS_I */