Skip to content

Commit 9c7fb7f

Browse files
committed
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>
1 parent 197b6b6 commit 9c7fb7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/buffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ static void decrypt_bh(struct work_struct *work)
331331
struct buffer_head *bh = ctx->bh;
332332
int err;
333333

334-
err = fscrypt_decrypt_pagecache_blocks(page_folio(bh->b_page),
335-
bh->b_size, bh_offset(bh));
334+
err = fscrypt_decrypt_pagecache_blocks(bh->b_folio, bh->b_size,
335+
bh_offset(bh));
336336
if (err == 0 && need_fsverity(bh)) {
337337
/*
338338
* We use different work queues for decryption and for verity

0 commit comments

Comments
 (0)