summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-02-24 15:25:03 -0800
committerEric Biggers <ebiggers@google.com>2023-03-27 21:15:49 -0700
commit9c7fb7f7637496e375cec9f56d7e316fb7dbf6c3 (patch)
tree5328d438348337d6c034a9f9b64f706c9e8d369f /fs/buffer.c
parent197b6b60ae7bc51dd0814953c562833143b292aa (diff)
downloadlwn-9c7fb7f7637496e375cec9f56d7e316fb7dbf6c3.tar.gz
lwn-9c7fb7f7637496e375cec9f56d7e316fb7dbf6c3.zip
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.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 9e1e2add541e..42cb851d06b5 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -331,8 +331,8 @@ static void decrypt_bh(struct work_struct *work)
struct buffer_head *bh = ctx->bh;
int err;
- err = fscrypt_decrypt_pagecache_blocks(page_folio(bh->b_page),
- bh->b_size, bh_offset(bh));
+ err = fscrypt_decrypt_pagecache_blocks(bh->b_folio, bh->b_size,
+ bh_offset(bh));
if (err == 0 && need_fsverity(bh)) {
/*
* We use different work queues for decryption and for verity