Home
last modified time | relevance | path

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

/Linux-v5.4/include/uapi/linux/
Dbcache.h159 struct cache_sb { struct
210 static inline _Bool SB_IS_BDEV(const struct cache_sb *sb) in SB_IS_BDEV() argument
216 BITMASK(CACHE_SYNC, struct cache_sb, flags, 0, 1);
217 BITMASK(CACHE_DISCARD, struct cache_sb, flags, 1, 1);
218 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3);
223 BITMASK(BDEV_CACHE_MODE, struct cache_sb, flags, 0, 4);
228 BITMASK(BDEV_STATE, struct cache_sb, flags, 61, 2);
245 static inline __u64 jset_magic(struct cache_sb *sb) in jset_magic()
250 static inline __u64 pset_magic(struct cache_sb *sb) in pset_magic()
255 static inline __u64 bset_magic(struct cache_sb *sb) in bset_magic()
/Linux-v5.4/drivers/md/bcache/
Dbcache.h303 struct cache_sb sb;
405 struct cache_sb sb;
515 struct cache_sb sb;
1013 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
Dsuper.c62 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, in read_super()
66 struct cache_sb *s; in read_super()
73 s = (struct cache_sb *) bh->b_data; in read_super()
209 static void __write_super(struct cache_sb *sb, struct bio *bio) in __write_super()
211 struct cache_sb *out = page_address(bio_first_page_all(bio)); in __write_super()
1329 static int register_bdev(struct cache_sb *sb, struct page *sb_page, in register_bdev()
1338 memcpy(&dc->sb, sb, sizeof(struct cache_sb)); in register_bdev()
1730 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb) in bch_cache_set_alloc()
2236 static int register_cache(struct cache_sb *sb, struct page *sb_page, in register_cache()
2243 memcpy(&ca->sb, sb, sizeof(struct cache_sb)); in register_cache()
[all …]