linux/drivers/md/dm-cache-policy.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2012 Red Hat. All rights reserved.
 *
 * This file is released under the GPL.
 */

#include "dm-cache-policy-internal.h"
#include "dm.h"

#include <linux/module.h>
#include <linux/slab.h>

/*----------------------------------------------------------------*/

#define DM_MSG_PREFIX

static DEFINE_SPINLOCK(register_lock);
static LIST_HEAD(register_list);

static struct dm_cache_policy_type *__find_policy(const char *name)
{}

static struct dm_cache_policy_type *__get_policy_once(const char *name)
{}

static struct dm_cache_policy_type *get_policy_once(const char *name)
{}

static struct dm_cache_policy_type *get_policy(const char *name)
{}

static void put_policy(struct dm_cache_policy_type *t)
{}

int dm_cache_policy_register(struct dm_cache_policy_type *type)
{}
EXPORT_SYMBOL_GPL();

void dm_cache_policy_unregister(struct dm_cache_policy_type *type)
{}
EXPORT_SYMBOL_GPL();

struct dm_cache_policy *dm_cache_policy_create(const char *name,
					       dm_cblock_t cache_size,
					       sector_t origin_size,
					       sector_t cache_block_size)
{}
EXPORT_SYMBOL_GPL();

void dm_cache_policy_destroy(struct dm_cache_policy *p)
{}
EXPORT_SYMBOL_GPL();

const char *dm_cache_policy_get_name(struct dm_cache_policy *p)
{}
EXPORT_SYMBOL_GPL();

const unsigned int *dm_cache_policy_get_version(struct dm_cache_policy *p)
{}
EXPORT_SYMBOL_GPL();

size_t dm_cache_policy_get_hint_size(struct dm_cache_policy *p)
{}
EXPORT_SYMBOL_GPL();

/*----------------------------------------------------------------*/