aboutsummaryrefslogtreecommitdiffstats
path: root/fs/crypto/bio.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-20 12:29:41 -0400
committerEric Biggers <ebiggers@google.com>2019-05-28 13:27:52 -0400
commitf47fcbb2b578bdb213d9ac5875aab56a2034d466 (patch)
tree2303eae811faf83ca3573685a8cafe248eeab1ab /fs/crypto/bio.c
parent2a415a0257314cb2e49fb9ac4c6770837112f261 (diff)
fscrypt: rename fscrypt_do_page_crypto() to fscrypt_crypt_block()
fscrypt_do_page_crypto() only does a single encryption or decryption operation, with a single logical block number (single IV). So it actually operates on a filesystem block, not a "page" per se. To reflect this, rename it to fscrypt_crypt_block(). Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com> Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto/bio.c')
-rw-r--r--fs/crypto/bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c
index c53425348387..92b2d5da5d8e 100644
--- a/fs/crypto/bio.c
+++ b/fs/crypto/bio.c
@@ -83,9 +83,9 @@ int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
83 return -ENOMEM; 83 return -ENOMEM;
84 84
85 while (len--) { 85 while (len--) {
86 err = fscrypt_do_page_crypto(inode, FS_ENCRYPT, lblk, 86 err = fscrypt_crypt_block(inode, FS_ENCRYPT, lblk,
87 ZERO_PAGE(0), ciphertext_page, 87 ZERO_PAGE(0), ciphertext_page,
88 PAGE_SIZE, 0, GFP_NOFS); 88 PAGE_SIZE, 0, GFP_NOFS);
89 if (err) 89 if (err)
90 goto errout; 90 goto errout;
91 91