Searched refs:cache_sb (Results 1 - 4 of 4) sorted by relevance

/linux-master/drivers/md/bcache/
H A Dfeatures.h35 static inline int bch_has_feature_##name(struct cache_sb *sb) \
42 static inline void bch_set_feature_##name(struct cache_sb *sb) \
47 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
54 static inline int bch_has_feature_##name(struct cache_sb *sb) \
61 static inline void bch_set_feature_##name(struct cache_sb *sb) \
66 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
73 static inline int bch_has_feature_##name(struct cache_sb *sb) \
80 static inline void bch_set_feature_##name(struct cache_sb *sb) \
85 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
94 static inline bool bch_has_unknown_compat_features(struct cache_sb *s
[all...]
H A Dbcache_ondisk.h222 * NOTE: cache_sb is NOT exactly mapping to cache_sb_disk, the member
226 struct cache_sb { struct
278 static inline _Bool SB_IS_BDEV(const struct cache_sb *sb)
285 BITMASK(CACHE_SYNC, struct cache_sb, flags, 0, 1);
286 BITMASK(CACHE_DISCARD, struct cache_sb, flags, 1, 1);
287 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3);
292 BITMASK(BDEV_CACHE_MODE, struct cache_sb, flags, 0, 4);
297 BITMASK(BDEV_STATE, struct cache_sb, flags, 61, 2);
314 static inline __u64 jset_magic(struct cache_sb *sb)
319 static inline __u64 pset_magic(struct cache_sb *s
[all...]
H A Dbcache.h305 struct cache_sb sb;
419 struct cache_sb sb;
770 static inline unsigned int meta_bucket_pages(struct cache_sb *sb)
785 static inline unsigned int meta_bucket_bytes(struct cache_sb *sb)
848 * This is used for various on disk data structures - cache_sb, prio_set, bset,
1035 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
H A Dsuper.c64 static unsigned int get_bucket_size(struct cache_sb *sb, struct cache_sb_disk *s)
91 static const char *read_super_common(struct cache_sb *sb, struct block_device *bdev,
166 static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
289 static void __write_super(struct cache_sb *sb, struct cache_sb_disk *out,
1448 static int register_bdev(struct cache_sb *sb, struct cache_sb_disk *sb_disk,
1456 memcpy(&dc->sb, sb, sizeof(struct cache_sb));
1857 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb)
2343 static int register_cache(struct cache_sb *sb, struct cache_sb_disk *sb_disk,
2350 memcpy(&ca->sb, sb, sizeof(struct cache_sb));
2449 struct cache_sb *s
[all...]

Completed in 116 milliseconds