blobfs: change the name macro

The two values are all default values.

Change-Id: I117eb217b71c3f079a4450c6f716f9bb70762399
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/420333
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ziye Yang 2018-07-25 12:37:25 +08:00 committed by Jim Harris
parent 016b0df5bf
commit f6c5e40aed

View File

@ -50,10 +50,10 @@
#define BLOBFS_TRACE_RW(file, str, args...) \
SPDK_DEBUGLOG(SPDK_LOG_BLOBFS_RW, "file=%s " str, file->name, ##args)
#define BLOBFS_CACHE_SIZE (4ULL * 1024 * 1024 * 1024)
#define SPDK_BLOBFS_OPTS_CLUSTER_SZ (1024 * 1024)
#define BLOBFS_DEFAULT_CACHE_SIZE (4ULL * 1024 * 1024 * 1024)
#define SPDK_BLOBFS_DEFAULT_OPTS_CLUSTER_SZ (1024 * 1024)
static uint64_t g_fs_cache_size = BLOBFS_CACHE_SIZE;
static uint64_t g_fs_cache_size = BLOBFS_DEFAULT_CACHE_SIZE;
static struct spdk_mempool *g_cache_pool;
static TAILQ_HEAD(, spdk_file) g_caches;
static int g_fs_count = 0;
@ -205,7 +205,7 @@ static void cache_free_buffers(struct spdk_file *file);
void
spdk_fs_opts_init(struct spdk_blobfs_opts *opts)
{
opts->cluster_sz = SPDK_BLOBFS_OPTS_CLUSTER_SZ;
opts->cluster_sz = SPDK_BLOBFS_DEFAULT_OPTS_CLUSTER_SZ;
}
static void