ocfs2: Add JBD2 compat feature bit.

Define the OCFS2_FEATURE_COMPAT_JBD2 bit in the filesystem header.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

authored by

Joel Becker and committed by
Mark Fasheh
a9772189 83099bc6

+7 -1
+7 -1
fs/ocfs2/ocfs2_fs.h
··· 86 #define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ 87 OCFS2_SB(sb)->s_feature_incompat &= ~(mask) 88 89 - #define OCFS2_FEATURE_COMPAT_SUPP OCFS2_FEATURE_COMPAT_BACKUP_SB 90 #define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \ 91 | OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \ 92 | OCFS2_FEATURE_INCOMPAT_INLINE_DATA \ ··· 152 * has backup superblocks. 153 */ 154 #define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001 155 156 /* 157 * Unwritten extents support.
··· 86 #define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ 87 OCFS2_SB(sb)->s_feature_incompat &= ~(mask) 88 89 + #define OCFS2_FEATURE_COMPAT_SUPP (OCFS2_FEATURE_COMPAT_BACKUP_SB \ 90 + | OCFS2_FEATURE_COMPAT_JBD2_SB) 91 #define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \ 92 | OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \ 93 | OCFS2_FEATURE_INCOMPAT_INLINE_DATA \ ··· 151 * has backup superblocks. 152 */ 153 #define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001 154 + 155 + /* 156 + * The filesystem will correctly handle journal feature bits. 157 + */ 158 + #define OCFS2_FEATURE_COMPAT_JBD2_SB 0x0002 159 160 /* 161 * Unwritten extents support.