Searched refs:cache_sb (Results 1 – 4 of 4) sorted by relevance
/drivers/md/bcache/ |
D | features.h | 35 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 *sb) in bch_has_unknown_compat_features() [all …]
|
D | bcache_ondisk.h | 226 struct cache_sb { struct 278 static inline _Bool SB_IS_BDEV(const struct cache_sb *sb) in SB_IS_BDEV() argument 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) in jset_magic() 319 static inline __u64 pset_magic(struct cache_sb *sb) in pset_magic() 324 static inline __u64 bset_magic(struct cache_sb *sb) in bset_magic()
|
D | bcache.h | 304 struct cache_sb sb; 418 struct cache_sb sb; 768 static inline unsigned int meta_bucket_pages(struct cache_sb *sb) in meta_bucket_pages() 783 static inline unsigned int meta_bucket_bytes(struct cache_sb *sb) in meta_bucket_bytes() 1033 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
|
D | super.c | 64 static unsigned int get_bucket_size(struct cache_sb *sb, struct cache_sb_disk *s) in get_bucket_size() 91 static const char *read_super_common(struct cache_sb *sb, struct block_device *bdev, in read_super_common() 166 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, in read_super() 289 static void __write_super(struct cache_sb *sb, struct cache_sb_disk *out, in __write_super() 1449 static int register_bdev(struct cache_sb *sb, struct cache_sb_disk *sb_disk, in register_bdev() 1457 memcpy(&dc->sb, sb, sizeof(struct cache_sb)); in register_bdev() 1858 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb) in bch_cache_set_alloc() 2343 static int register_cache(struct cache_sb *sb, struct cache_sb_disk *sb_disk, in register_cache() 2349 memcpy(&ca->sb, sb, sizeof(struct cache_sb)); in register_cache() 2451 struct cache_sb *sb; [all …]
|