Home
last modified time | relevance | path

Searched refs:ondisk (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/bcache/
Ddebug.c34 struct bset *ondisk, *sorted, *inmemory; in bch_btree_verify() local
43 ondisk = b->c->verify_ondisk; in bch_btree_verify()
62 memcpy(ondisk, sorted, KEY_SIZE(&v->key) << 9); in bch_btree_verify()
83 for_each_written_bset(b, ondisk, i) { in bch_btree_verify()
84 unsigned int block = ((void *) i - (void *) ondisk) / in bch_btree_verify()
92 ((void *) i - (void *) ondisk) / block_bytes(b->c->cache)); in bch_btree_verify()
/kernel/linux/linux-5.10/drivers/block/
Drbd.c987 static bool rbd_dev_ondisk_valid(struct rbd_image_header_ondisk *ondisk) in rbd_dev_ondisk_valid() argument
993 if (memcmp(&ondisk->text, RBD_HEADER_TEXT, sizeof (RBD_HEADER_TEXT))) in rbd_dev_ondisk_valid()
998 if (ondisk->options.order < SECTOR_SHIFT) in rbd_dev_ondisk_valid()
1003 if (ondisk->options.order > 8 * sizeof (int) - 1) in rbd_dev_ondisk_valid()
1010 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_dev_ondisk_valid()
1020 if ((u64) size < le64_to_cpu(ondisk->snap_names_len)) in rbd_dev_ondisk_valid()
1055 struct rbd_image_header_ondisk *ondisk) in rbd_header_from_disk() argument
1070 object_prefix = kstrndup(ondisk->object_prefix, in rbd_header_from_disk()
1071 sizeof(ondisk->object_prefix), in rbd_header_from_disk()
1079 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_header_from_disk()
[all …]