aboutsummaryrefslogtreecommitdiffstats
path: root/fs/crypto/bio.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-20 12:29:40 -0400
committerEric Biggers <ebiggers@google.com>2019-05-28 13:27:52 -0400
commit2a415a0257314cb2e49fb9ac4c6770837112f261 (patch)
treeb7e812fe46716e8a00114ba6c8161c7eb8f71275 /fs/crypto/bio.c
parentd2d0727b1654e11563f181f4d3d48b9275514480 (diff)
fscrypt: remove the "write" part of struct fscrypt_ctx
Now that fscrypt_ctx is not used for writes, remove the 'w' fields. 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.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c
index c857b70b5328..c53425348387 100644
--- a/fs/crypto/bio.c
+++ b/fs/crypto/bio.c
@@ -53,9 +53,8 @@ EXPORT_SYMBOL(fscrypt_decrypt_bio);
53 53
54static void completion_pages(struct work_struct *work) 54static void completion_pages(struct work_struct *work)
55{ 55{
56 struct fscrypt_ctx *ctx = 56 struct fscrypt_ctx *ctx = container_of(work, struct fscrypt_ctx, work);
57 container_of(work, struct fscrypt_ctx, r.work); 57 struct bio *bio = ctx->bio;
58 struct bio *bio = ctx->r.bio;
59 58
60 __fscrypt_decrypt_bio(bio, true); 59 __fscrypt_decrypt_bio(bio, true);
61 fscrypt_release_ctx(ctx); 60 fscrypt_release_ctx(ctx);
@@ -64,9 +63,9 @@ static void completion_pages(struct work_struct *work)
64 63
65void fscrypt_enqueue_decrypt_bio(struct fscrypt_ctx *ctx, struct bio *bio) 64void fscrypt_enqueue_decrypt_bio(struct fscrypt_ctx *ctx, struct bio *bio)
66{ 65{
67 INIT_WORK(&ctx->r.work, completion_pages); 66 INIT_WORK(&ctx->work, completion_pages);
68 ctx->r.bio = bio; 67 ctx->bio = bio;
69 fscrypt_enqueue_decrypt_work(&ctx->r.work); 68 fscrypt_enqueue_decrypt_work(&ctx->work);
70} 69}
71EXPORT_SYMBOL(fscrypt_enqueue_decrypt_bio); 70EXPORT_SYMBOL(fscrypt_enqueue_decrypt_bio);
72 71