/* Move snapshot to correct place in list according to chunk size.  */
static void reregister_snapshot(struct dm_snapshot *s)
/* Move snapshot to correct place in list according to chunk size.  */
static void reregister_snapshot(struct dm_snapshot *s)
{
	struct block_device *bdev = s->origin->bdev;
	down_write(&_origins_lock);
	list_del(&s->list);
	__insert_snapshot(__lookup_origin(bdev), s);
	up_write(&_origins_lock);
}