PERFORCE change 182718 for review
Zheng Liu
lz at FreeBSD.org
Sun Aug 22 05:49:58 UTC 2010
http://p4web.freebsd.org/@@182718?ac=10
Change 182718 by lz at gnehzuil-freebsd on 2010/08/22 05:49:07
Recovery ext2fs.h file.
Affected files ...
.. //depot/projects/soc2010/ext4fs/src/sys/fs/ext2fs/ext2fs.h#10 edit
Differences ...
==== //depot/projects/soc2010/ext4fs/src/sys/fs/ext2fs/ext2fs.h#10 (text+ko) ====
@@ -39,6 +39,7 @@
#include <sys/types.h>
#include <sys/lock.h>
+#include <fs/ext2fs/ext2_rsv_win.h>
#include <machine/atomic.h>
/*
@@ -92,6 +93,15 @@
*/
#define MAXMNTLEN 512
+/* ext4 flex block group data structure */
+struct ext4_flex_groups {
+ long e2fg_nifree;
+ long e2fg_nbfree;
+ long e2fg_ndirs;
+};
+
+#define EXT4_FLEX_ALLOC_DIR_SIZE 4
+
/*
* Super block for an ext2fs file system.
*/
@@ -205,6 +215,13 @@
off_t e2fs_maxfilesize;
struct ext2_gd *e2fs_gd; /* Group Descriptors */
+ struct mtx e2fs_rsv_lock; /* Protect reservation window RB tree */
+ struct ext2_rsv_win_tree e2fs_rsv_tree; /* Reservation window index */
+
+ u_int8_t e2fs_log_gpf; /* FLEX_BG group size */
+ int e2fs_descpbbits;
+ struct ext4_flex_groups *e2fs_fg;
+
u_int16_t e2fs_min_extra_isize; /* all inodes have at least some bytes */
u_int16_t e2fs_want_extra_isize; /* new inodes should reserve some bytes */
};
@@ -252,8 +269,7 @@
#define EXT4F_INCOMPAT_EXTENTS 0x0040
#define EXT4F_INCOMPAT_64BIT 0x0080
#define EXT4F_INCOMPAT_MMP 0x0100
-#define EXT4F_INCOMPAT_FLEX_BG 0x0200
-#define EXT4F_INCOMPAT_EAINODE 0x0400
+#define EXT4F_INCOMPAT_FLEX_BG 0X0200
/*
* Features supported in this implementation
More information about the p4-projects
mailing list