Commit 2f06cd12 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer

dm: avoid initializing static variables

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 44bc08ed
...@@ -216,7 +216,7 @@ static DEFINE_SPINLOCK(global_spinlock); ...@@ -216,7 +216,7 @@ static DEFINE_SPINLOCK(global_spinlock);
static LIST_HEAD(global_queue); static LIST_HEAD(global_queue);
static unsigned long global_num = 0; static unsigned long global_num;
/* /*
* Buffers are freed after this timeout * Buffers are freed after this timeout
......
...@@ -230,7 +230,7 @@ struct crypt_config { ...@@ -230,7 +230,7 @@ struct crypt_config {
#define POOL_ENTRY_SIZE 512 #define POOL_ENTRY_SIZE 512
static DEFINE_SPINLOCK(dm_crypt_clients_lock); static DEFINE_SPINLOCK(dm_crypt_clients_lock);
static unsigned int dm_crypt_clients_n = 0; static unsigned int dm_crypt_clients_n;
static volatile unsigned long dm_crypt_pages_per_client; static volatile unsigned long dm_crypt_pages_per_client;
#define DM_CRYPT_MEMORY_PERCENT 2 #define DM_CRYPT_MEMORY_PERCENT 2
#define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16) #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
*/ */
#define MIN_RAID456_JOURNAL_SPACE (4*2048) #define MIN_RAID456_JOURNAL_SPACE (4*2048)
static bool devices_handle_discard_safely = false; static bool devices_handle_discard_safely;
/* /*
* The following flags are used by dm-raid.c to set up the array state. * The following flags are used by dm-raid.c to set up the array state.
......
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
static const char *_name = DM_NAME; static const char *_name = DM_NAME;
static unsigned int major = 0; static unsigned int major;
static unsigned int _major = 0; static unsigned int _major;
static DEFINE_IDR(_minor_idr); static DEFINE_IDR(_minor_idr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment