diff options
author | Theodore Ts'o <tytso@mit.edu> | 2015-10-03 14:49:26 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-03 14:49:26 (GMT) |
commit | 3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8 (patch) | |
tree | 0764d2c74ee96d80b690587b90ec1d49c881de9a /fs/ext4/readpage.c | |
parent | cccd147a57e47527ce9c27fcd5f0a1c5669d6870 (diff) | |
download | linux-3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/readpage.c b/fs/ext4/readpage.c index e26803f..a91e4bf 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); |