]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Define the codepoint for the fast_commit compat feature
authorTheodore Ts'o <tytso@mit.edu>
Fri, 4 Oct 2019 01:14:31 +0000 (21:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 4 Oct 2019 01:15:22 +0000 (21:15 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/feature.c
lib/ext2fs/ext2_fs.h

index 117acf25c8aa7865901f19524adfc9beab4d3785..ae7f7f0aac20e610d22b1877217e2c5ce9b698d0 100644 (file)
@@ -45,6 +45,8 @@ static struct feature feature_list[] = {
                        "snapshot_bitmap" },
        {       E2P_FEATURE_COMPAT, EXT4_FEATURE_COMPAT_SPARSE_SUPER2,
                        "sparse_super2" },
+       {       E2P_FEATURE_COMPAT, EXT4_FEATURE_COMPAT_FAST_COMMIT,
+                       "fast_commit" },
 
        {       E2P_FEATURE_RO_INCOMPAT, EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER,
                        "sparse_super" },
index cbb44bdb6b0bbe3cc828f1199803990a5a952ded..febcb476a996b497dea0122aa26a055d6e3cce31 100644 (file)
@@ -810,6 +810,7 @@ struct ext2_super_block {
 /* #define EXT2_FEATURE_COMPAT_EXCLUDE_INODE   0x0080 not used, legacy */
 #define EXT2_FEATURE_COMPAT_EXCLUDE_BITMAP     0x0100
 #define EXT4_FEATURE_COMPAT_SPARSE_SUPER2      0x0200
+#define EXT4_FEATURE_COMPAT_FAST_COMMIT                0x0400
 
 
 #define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER    0x0001
@@ -911,6 +912,7 @@ EXT4_FEATURE_COMPAT_FUNCS(dir_index,                2, DIR_INDEX)
 EXT4_FEATURE_COMPAT_FUNCS(lazy_bg,             2, LAZY_BG)
 EXT4_FEATURE_COMPAT_FUNCS(exclude_bitmap,      2, EXCLUDE_BITMAP)
 EXT4_FEATURE_COMPAT_FUNCS(sparse_super2,       4, SPARSE_SUPER2)
+EXT4_FEATURE_COMPAT_FUNCS(fast_commit,         4, FAST_COMMIT)
 
 EXT4_FEATURE_RO_COMPAT_FUNCS(sparse_super,     2, SPARSE_SUPER)
 EXT4_FEATURE_RO_COMPAT_FUNCS(large_file,       2, LARGE_FILE)