diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2016-08-25 07:12:54 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-11-21 09:52:00 -0500 |
commit | 671ea6b4574e28c5f5f51a4261b9492639507bbc (patch) | |
tree | 88d60fb0daae468f11914393a7043999828cefee /drivers/md | |
parent | 265e9098bac02bc5e36cda21fdbad34cb5b2f48d (diff) | |
download | op-kernel-dev-671ea6b4574e28c5f5f51a4261b9492639507bbc.zip op-kernel-dev-671ea6b4574e28c5f5f51a4261b9492639507bbc.tar.gz |
dm crypt: rename crypt_setkey_allcpus to crypt_setkey
In the past, dm-crypt used per-cpu crypto context. This has been removed
in the kernel 3.15 and the crypto context is shared between all cpus. This
patch renames the function crypt_setkey_allcpus to crypt_setkey, because
there is really no activity that is done for all cpus.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-crypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 01fdaec..3b8eab9 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -1465,7 +1465,7 @@ static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode) return 0; } -static int crypt_setkey_allcpus(struct crypt_config *cc) +static int crypt_setkey(struct crypt_config *cc) { unsigned subkey_size; int err = 0, i, r; @@ -1503,7 +1503,7 @@ static int crypt_set_key(struct crypt_config *cc, char *key) if (cc->key_size && crypt_decode_key(cc->key, key, cc->key_size) < 0) goto out; - r = crypt_setkey_allcpus(cc); + r = crypt_setkey(cc); if (!r) set_bit(DM_CRYPT_KEY_VALID, &cc->flags); @@ -1519,7 +1519,7 @@ static int crypt_wipe_key(struct crypt_config *cc) clear_bit(DM_CRYPT_KEY_VALID, &cc->flags); memset(&cc->key, 0, cc->key_size * sizeof(u8)); - return crypt_setkey_allcpus(cc); + return crypt_setkey(cc); } static void crypt_dtr(struct dm_target *ti) |