summaryrefslogtreecommitdiffstats
path: root/fs/ext4/readpage.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-10-03 10:49:26 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-10-03 10:49:26 -0400
commit3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8 (patch)
tree0764d2c74ee96d80b690587b90ec1d49c881de9a /fs/ext4/readpage.c
parentcccd147a57e47527ce9c27fcd5f0a1c5669d6870 (diff)
downloadlinux-stable-3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8.tar.gz
linux-stable-3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8.tar.bz2
linux-stable-3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8.zip
ext4 crypto: ext4_page_crypto() doesn't need a encryption context
Since ext4_page_crypto() doesn't need an encryption context (at least not any more), this allows us to simplify a number function signature and also allows us to avoid needing to allocate a context in ext4_block_write_begin(). It also means we no longer need a separate ext4_decrypt_one() function. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/readpage.c')
-rw-r--r--fs/ext4/readpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c
index e26803fb210d..a91e4bf6ebc4 100644
--- a/fs/ext4/readpage.c
+++ b/fs/ext4/readpage.c
@@ -62,7 +62,7 @@ static void completion_pages(struct work_struct *work)
bio_for_each_segment_all(bv, bio, i) {
struct page *page = bv->bv_page;
- int ret = ext4_decrypt(ctx, page);
+ int ret = ext4_decrypt(page);
if (ret) {
WARN_ON_ONCE(1);
SetPageError(page);