ext4 crypto: get rid of ci_mode from struct ext4_crypt_info

The ci_mode field was superfluous, and getting rid of it gets rid of
an unused hole in the structure.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o
2015-05-18 13:20:47 -04:00
parent 8ee0371470
commit 1aaa6e8b24
4 changed files with 12 additions and 15 deletions

View File

@@ -272,9 +272,9 @@ int ext4_setup_fname_crypto(struct inode *inode)
if (!ci || ci->ci_ctfm)
return 0;
if (ci->ci_mode != EXT4_ENCRYPTION_MODE_AES_256_CTS) {
if (ci->ci_filename_mode != EXT4_ENCRYPTION_MODE_AES_256_CTS) {
printk_once(KERN_WARNING "ext4: unsupported key mode %d\n",
ci->ci_mode);
ci->ci_filename_mode);
return -ENOKEY;
}