Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/md/bcache/
Dfeatures.h30 static inline int bch_has_feature_##name(struct cache_sb *sb) \
35 static inline void bch_set_feature_##name(struct cache_sb *sb) \
40 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
47 static inline int bch_has_feature_##name(struct cache_sb *sb) \
52 static inline void bch_set_feature_##name(struct cache_sb *sb) \
57 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
64 static inline int bch_has_feature_##name(struct cache_sb *sb) \
69 static inline void bch_set_feature_##name(struct cache_sb *sb) \
74 static inline void bch_clear_feature_##name(struct cache_sb *sb) \
Dbcache.h303 struct cache_sb sb;
409 struct cache_sb sb;
761 static inline unsigned int meta_bucket_pages(struct cache_sb *sb) in meta_bucket_pages()
776 static inline unsigned int meta_bucket_bytes(struct cache_sb *sb) in meta_bucket_bytes()
1032 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
Dsuper.c63 static unsigned int get_bucket_size(struct cache_sb *sb, struct cache_sb_disk *s) in get_bucket_size()
74 static const char *read_super_common(struct cache_sb *sb, struct block_device *bdev, in read_super_common()
149 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, in read_super()
258 static void __write_super(struct cache_sb *sb, struct cache_sb_disk *out, in __write_super()
1432 static int register_bdev(struct cache_sb *sb, struct cache_sb_disk *sb_disk, in register_bdev()
1441 memcpy(&dc->sb, sb, sizeof(struct cache_sb)); in register_bdev()
1831 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb) in bch_cache_set_alloc()
2312 static int register_cache(struct cache_sb *sb, struct cache_sb_disk *sb_disk, in register_cache()
2319 memcpy(&ca->sb, sb, sizeof(struct cache_sb)); in register_cache()
2423 struct cache_sb *sb;
[all …]
/Linux-v5.10/include/uapi/linux/
Dbcache.h225 struct cache_sb { struct
277 static inline _Bool SB_IS_BDEV(const struct cache_sb *sb) in SB_IS_BDEV() argument
284 BITMASK(CACHE_SYNC, struct cache_sb, flags, 0, 1);
285 BITMASK(CACHE_DISCARD, struct cache_sb, flags, 1, 1);
286 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3);
291 BITMASK(BDEV_CACHE_MODE, struct cache_sb, flags, 0, 4);
296 BITMASK(BDEV_STATE, struct cache_sb, flags, 61, 2);
313 static inline __u64 jset_magic(struct cache_sb *sb) in jset_magic()
318 static inline __u64 pset_magic(struct cache_sb *sb) in pset_magic()
323 static inline __u64 bset_magic(struct cache_sb *sb) in bset_magic()