linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/buffer.c: use b_folio for fscrypt work
@ 2023-02-24 23:25 Eric Biggers
  2023-03-07 19:42 ` Eric Biggers
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2023-02-24 23:25 UTC (permalink / raw)
  To: linux-fscrypt; +Cc: linux-ext4, Matthew Wilcox

From: Eric Biggers <ebiggers@google.com>

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

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 fs/buffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 034bece27163..d759b105c1e7 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -330,8 +330,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
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fs/buffer.c: use b_folio for fscrypt work
  2023-02-24 23:25 [PATCH] fs/buffer.c: use b_folio for fscrypt work Eric Biggers
@ 2023-03-07 19:42 ` Eric Biggers
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Biggers @ 2023-03-07 19:42 UTC (permalink / raw)
  To: linux-fscrypt; +Cc: linux-ext4, Matthew Wilcox

On Fri, Feb 24, 2023 at 03:25:03PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Use b_folio now that it exists.  This removes an unnecessary call to
> compound_head().  No actual change in behavior.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  fs/buffer.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/buffer.c b/fs/buffer.c
> index 034bece27163..d759b105c1e7 100644
> --- a/fs/buffer.c
> +++ b/fs/buffer.c
> @@ -330,8 +330,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

Applied to https://git.kernel.org/pub/scm/fs/fscrypt/linux.git/log/?h=for-next

- Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-07 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 23:25 [PATCH] fs/buffer.c: use b_folio for fscrypt work Eric Biggers
2023-03-07 19:42 ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).