diff options
Diffstat (limited to 'fs/crypto/crypto.c')
-rw-r--r-- | fs/crypto/crypto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index 06cd1a22240b..7f5804537d30 100644 --- a/fs/crypto/crypto.c +++ b/fs/crypto/crypto.c | |||
@@ -175,10 +175,10 @@ static int do_page_crypto(struct inode *inode, | |||
175 | FS_XTS_TWEAK_SIZE - sizeof(index)); | 175 | FS_XTS_TWEAK_SIZE - sizeof(index)); |
176 | 176 | ||
177 | sg_init_table(&dst, 1); | 177 | sg_init_table(&dst, 1); |
178 | sg_set_page(&dst, dest_page, PAGE_CACHE_SIZE, 0); | 178 | sg_set_page(&dst, dest_page, PAGE_SIZE, 0); |
179 | sg_init_table(&src, 1); | 179 | sg_init_table(&src, 1); |
180 | sg_set_page(&src, src_page, PAGE_CACHE_SIZE, 0); | 180 | sg_set_page(&src, src_page, PAGE_SIZE, 0); |
181 | skcipher_request_set_crypt(req, &src, &dst, PAGE_CACHE_SIZE, | 181 | skcipher_request_set_crypt(req, &src, &dst, PAGE_SIZE, |
182 | xts_tweak); | 182 | xts_tweak); |
183 | if (rw == FS_DECRYPT) | 183 | if (rw == FS_DECRYPT) |
184 | res = crypto_skcipher_decrypt(req); | 184 | res = crypto_skcipher_decrypt(req); |
@@ -287,7 +287,7 @@ int fscrypt_zeroout_range(struct inode *inode, pgoff_t lblk, | |||
287 | struct bio *bio; | 287 | struct bio *bio; |
288 | int ret, err = 0; | 288 | int ret, err = 0; |
289 | 289 | ||
290 | BUG_ON(inode->i_sb->s_blocksize != PAGE_CACHE_SIZE); | 290 | BUG_ON(inode->i_sb->s_blocksize != PAGE_SIZE); |
291 | 291 | ||
292 | ctx = fscrypt_get_ctx(inode); | 292 | ctx = fscrypt_get_ctx(inode); |
293 | if (IS_ERR(ctx)) | 293 | if (IS_ERR(ctx)) |