ondisk           1038 drivers/block/rbd.c static bool rbd_dev_ondisk_valid(struct rbd_image_header_ondisk *ondisk)
ondisk           1044 drivers/block/rbd.c 	if (memcmp(&ondisk->text, RBD_HEADER_TEXT, sizeof (RBD_HEADER_TEXT)))
ondisk           1049 drivers/block/rbd.c 	if (ondisk->options.order < SECTOR_SHIFT)
ondisk           1054 drivers/block/rbd.c 	if (ondisk->options.order > 8 * sizeof (int) - 1)
ondisk           1061 drivers/block/rbd.c 	snap_count = le32_to_cpu(ondisk->snap_count);
ondisk           1071 drivers/block/rbd.c 	if ((u64) size < le64_to_cpu(ondisk->snap_names_len))
ondisk           1106 drivers/block/rbd.c 				 struct rbd_image_header_ondisk *ondisk)
ondisk           1121 drivers/block/rbd.c 		object_prefix = kstrndup(ondisk->object_prefix,
ondisk           1122 drivers/block/rbd.c 					 sizeof(ondisk->object_prefix),
ondisk           1130 drivers/block/rbd.c 	snap_count = le32_to_cpu(ondisk->snap_count);
ondisk           1134 drivers/block/rbd.c 	snapc->seq = le64_to_cpu(ondisk->snap_seq);
ondisk           1137 drivers/block/rbd.c 		u64 snap_names_len = le64_to_cpu(ondisk->snap_names_len);
ondisk           1163 drivers/block/rbd.c 		memcpy(snap_names, &ondisk->snaps[snap_count], snap_names_len);
ondisk           1164 drivers/block/rbd.c 		snaps = ondisk->snaps;
ondisk           1175 drivers/block/rbd.c 		header->obj_order = ondisk->options.order;
ondisk           1185 drivers/block/rbd.c 	header->image_size = le64_to_cpu(ondisk->image_size);
ondisk           4979 drivers/block/rbd.c 	struct rbd_image_header_ondisk *ondisk = NULL;
ondisk           4995 drivers/block/rbd.c 		kfree(ondisk);
ondisk           4997 drivers/block/rbd.c 		size = sizeof (*ondisk);
ondisk           5000 drivers/block/rbd.c 		ondisk = kmalloc(size, GFP_KERNEL);
ondisk           5001 drivers/block/rbd.c 		if (!ondisk)
ondisk           5005 drivers/block/rbd.c 					&rbd_dev->header_oloc, ondisk, size);
ondisk           5014 drivers/block/rbd.c 		if (!rbd_dev_ondisk_valid(ondisk)) {
ondisk           5020 drivers/block/rbd.c 		names_size = le64_to_cpu(ondisk->snap_names_len);
ondisk           5022 drivers/block/rbd.c 		snap_count = le32_to_cpu(ondisk->snap_count);
ondisk           5025 drivers/block/rbd.c 	ret = rbd_header_from_disk(rbd_dev, ondisk);
ondisk           5027 drivers/block/rbd.c 	kfree(ondisk);
ondisk             34 drivers/md/bcache/debug.c 	struct bset *ondisk, *sorted, *inmemory;
ondisk             43 drivers/md/bcache/debug.c 	ondisk = b->c->verify_ondisk;
ondisk             62 drivers/md/bcache/debug.c 	memcpy(ondisk, sorted, KEY_SIZE(&v->key) << 9);
ondisk             83 drivers/md/bcache/debug.c 		for_each_written_bset(b, ondisk, i) {
ondisk             84 drivers/md/bcache/debug.c 			unsigned int block = ((void *) i - (void *) ondisk) /
ondisk             92 drivers/md/bcache/debug.c 		       ((void *) i - (void *) ondisk) / block_bytes(b->c));