Lines Matching full:sb
27 #define BCH_HAS_COMPAT_FEATURE(sb, mask) \ argument
28 ((sb)->feature_compat & (mask))
29 #define BCH_HAS_RO_COMPAT_FEATURE(sb, mask) \ argument
30 ((sb)->feature_ro_compat & (mask))
31 #define BCH_HAS_INCOMPAT_FEATURE(sb, mask) \ argument
32 ((sb)->feature_incompat & (mask))
35 static inline int bch_has_feature_##name(struct cache_sb *sb) \
37 if (sb->version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES) \
39 return (((sb)->feature_compat & \
42 static inline void bch_set_feature_##name(struct cache_sb *sb) \
44 (sb)->feature_compat |= \
47 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
49 (sb)->feature_compat &= \
54 static inline int bch_has_feature_##name(struct cache_sb *sb) \
56 if (sb->version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES) \
58 return (((sb)->feature_ro_compat & \
61 static inline void bch_set_feature_##name(struct cache_sb *sb) \
63 (sb)->feature_ro_compat |= \
66 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
68 (sb)->feature_ro_compat &= \
73 static inline int bch_has_feature_##name(struct cache_sb *sb) \
75 if (sb->version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES) \
77 return (((sb)->feature_incompat & \
80 static inline void bch_set_feature_##name(struct cache_sb *sb) \
82 (sb)->feature_incompat |= \
85 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
87 (sb)->feature_incompat &= \
94 static inline bool bch_has_unknown_compat_features(struct cache_sb *sb) in bch_has_unknown_compat_features() argument
96 return ((sb->feature_compat & ~BCH_FEATURE_COMPAT_SUPP) != 0); in bch_has_unknown_compat_features()
99 static inline bool bch_has_unknown_ro_compat_features(struct cache_sb *sb) in bch_has_unknown_ro_compat_features() argument
101 return ((sb->feature_ro_compat & ~BCH_FEATURE_RO_COMPAT_SUPP) != 0); in bch_has_unknown_ro_compat_features()
104 static inline bool bch_has_unknown_incompat_features(struct cache_sb *sb) in bch_has_unknown_incompat_features() argument
106 return ((sb->feature_incompat & ~BCH_FEATURE_INCOMPAT_SUPP) != 0); in bch_has_unknown_incompat_features()