Skip to content

Commit 5c5bd1f

Browse files
zhangyi089tytso
authored andcommitted
jbd2: remove unused feature macros
JBD2_HAS_[IN|RO_]COMPAT_FEATURE macros are no longer used, just remove them. Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230315013128.3911115-4-chengzhihao1@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 93e92cf commit 5c5bd1f

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

include/linux/jbd2.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,6 @@ typedef struct journal_superblock_s
274274
/* 0x0400 */
275275
} journal_superblock_t;
276276

277-
/* Use the jbd2_{has,set,clear}_feature_* helpers; these will be removed */
278-
#define JBD2_HAS_COMPAT_FEATURE(j,mask) \
279-
((j)->j_format_version >= 2 && \
280-
((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))
281-
#define JBD2_HAS_RO_COMPAT_FEATURE(j,mask) \
282-
((j)->j_format_version >= 2 && \
283-
((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))
284-
#define JBD2_HAS_INCOMPAT_FEATURE(j,mask) \
285-
((j)->j_format_version >= 2 && \
286-
((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))
287-
288277
#define JBD2_FEATURE_COMPAT_CHECKSUM 0x00000001
289278

290279
#define JBD2_FEATURE_INCOMPAT_REVOKE 0x00000001

0 commit comments

Comments
 (0)