]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libext2fs: move mmp fields to preserve structure layout of ext2_filsys
authorTheodore Ts'o <tytso@mit.edu>
Sat, 26 Nov 2011 02:23:18 +0000 (21:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Nov 2011 02:23:18 +0000 (21:23 -0500)
This helps provide better ABI compatibility for e2fsprogs 1.42.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2fs.h

index 08f1946389e161469f17c3ca2a3aadf29771f118..227ee5829ab13a23e18d350b8bed3e6a50d4d07c 100644 (file)
@@ -260,6 +260,13 @@ struct struct_ext2_filsys {
        struct ext2_inode_cache         *icache;
        io_channel                      image_io;
 
+       /*
+        * More callback functions
+        */
+       errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
+                                    blk64_t *ret);
+       void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
+
        /*
         * Buffers for Multiple mount protection(MMP) block.
         */
@@ -271,13 +278,6 @@ struct struct_ext2_filsys {
         * Time at which e2fsck last updated the MMP block.
         */
        long mmp_last_written;
-
-       /*
-        * More callback functions
-        */
-       errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
-                                    blk64_t *ret);
-       void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
 };
 
 #if EXT2_FLAT_INCLUDES