Commit 9c7fb7f7 authored by Eric Biggers's avatar Eric Biggers

fs/buffer.c: use b_folio for fscrypt work

Use b_folio now that it exists.  This removes an unnecessary call to
compound_head().  No actual change in behavior.

Link: https://lore.kernel.org/r/20230224232503.98372-1-ebiggers@kernel.orgSigned-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 197b6b60
...@@ -331,8 +331,8 @@ static void decrypt_bh(struct work_struct *work) ...@@ -331,8 +331,8 @@ static void decrypt_bh(struct work_struct *work)
struct buffer_head *bh = ctx->bh; struct buffer_head *bh = ctx->bh;
int err; int err;
err = fscrypt_decrypt_pagecache_blocks(page_folio(bh->b_page), err = fscrypt_decrypt_pagecache_blocks(bh->b_folio, bh->b_size,
bh->b_size, bh_offset(bh)); bh_offset(bh));
if (err == 0 && need_fsverity(bh)) { if (err == 0 && need_fsverity(bh)) {
/* /*
* We use different work queues for decryption and for verity * We use different work queues for decryption and for verity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment