mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Tal Zussman <tz2294@columbia.edu>,
	David Sterba <dsterba@suse.com>, Chris Mason <mason@kernel.org>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
	linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 01/10] btrfs: tests: rename process_page_range() to process_folio_range()
Date: Mon, 7 Sep 2026 16:00:24 +0930	[thread overview]
Message-ID: <1a1d2b1d-d533-4f79-abaf-0aea60f895e2@gmx.com> (raw)
In-Reply-To: <20260906-btrfs-folio-conversions-v1-1-834b9d7b06f5@columbia.edu>



在 2026/9/7 07:59, Tal Zussman 写道:
> It already operates on folios. No functional change.
> 
> Signed-off-by: Tal Zussman <tz2294@columbia.edu>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu

> ---
>   fs/btrfs/tests/extent-io-tests.c | 20 ++++++++++----------
>   1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/fs/btrfs/tests/extent-io-tests.c b/fs/btrfs/tests/extent-io-tests.c
> index 23459cd4e503..6eb55bfb2bd4 100644
> --- a/fs/btrfs/tests/extent-io-tests.c
> +++ b/fs/btrfs/tests/extent-io-tests.c
> @@ -18,8 +18,8 @@
>   #define PROCESS_RELEASE		(1U << 1)
>   #define PROCESS_TEST_LOCKED	(1U << 2)
>   
> -static noinline int process_page_range(struct inode *inode, u64 start, u64 end,
> -				       unsigned long flags)
> +static noinline int process_folio_range(struct inode *inode, u64 start, u64 end,
> +					unsigned long flags)
>   {
>   	int ret;
>   	struct folio_batch fbatch;
> @@ -221,8 +221,8 @@ static int test_find_delalloc(u32 sectorsize, u32 nodesize)
>   				test_start, max_bytes - 1, start, end);
>   		goto out_bits;
>   	}
> -	if (process_page_range(inode, start, end,
> -			       PROCESS_TEST_LOCKED | PROCESS_UNLOCK)) {
> +	if (process_folio_range(inode, start, end,
> +				PROCESS_TEST_LOCKED | PROCESS_UNLOCK)) {
>   		test_err("there were unlocked pages in the range");
>   		goto out_bits;
>   	}
> @@ -276,8 +276,8 @@ static int test_find_delalloc(u32 sectorsize, u32 nodesize)
>   			 test_start, total_dirty - 1, start, end);
>   		goto out_bits;
>   	}
> -	if (process_page_range(inode, start, end,
> -			       PROCESS_TEST_LOCKED | PROCESS_UNLOCK)) {
> +	if (process_folio_range(inode, start, end,
> +				PROCESS_TEST_LOCKED | PROCESS_UNLOCK)) {
>   		test_err("pages in range were not all locked");
>   		goto out_bits;
>   	}
> @@ -317,8 +317,8 @@ static int test_find_delalloc(u32 sectorsize, u32 nodesize)
>   			 test_start, test_start + PAGE_SIZE - 1, start, end);
>   		goto out_bits;
>   	}
> -	if (process_page_range(inode, start, end, PROCESS_TEST_LOCKED |
> -			       PROCESS_UNLOCK)) {
> +	if (process_folio_range(inode, start, end, PROCESS_TEST_LOCKED |
> +				PROCESS_UNLOCK)) {
>   		test_err("pages in range were not all locked");
>   		goto out_bits;
>   	}
> @@ -330,8 +330,8 @@ static int test_find_delalloc(u32 sectorsize, u32 nodesize)
>   out:
>   	if (locked_page)
>   		put_page(locked_page);
> -	process_page_range(inode, 0, total_dirty - 1,
> -			   PROCESS_UNLOCK | PROCESS_RELEASE);
> +	process_folio_range(inode, 0, total_dirty - 1,
> +			    PROCESS_UNLOCK | PROCESS_RELEASE);
>   	iput(inode);
>   out_root_info:
>   	btrfs_free_dummy_root(root);
> 


  reply	other threads:[~2026-09-07  6:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-06 22:29 [PATCH 00/10] btrfs: convert some struct page users to folios Tal Zussman
2026-09-06 22:29 ` [PATCH 01/10] btrfs: tests: rename process_page_range() to process_folio_range() Tal Zussman
2026-09-07  6:30   ` Qu Wenruo [this message]
2026-09-06 22:29 ` [PATCH 02/10] btrfs: tests: convert test_find_delalloc() to use folios Tal Zussman
2026-09-07  6:29   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 03/10] btrfs: tests: use eb folio helpers in extent buffer memory checks Tal Zussman
2026-09-07  6:33   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 04/10] btrfs: convert btrfs_compr_pool_scan() to use folios Tal Zussman
2026-09-07  6:36   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 05/10] btrfs: convert heuristic_collect_sample() " Tal Zussman
2026-09-07  6:44   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 06/10] btrfs: fix stale function references in compression comments Tal Zussman
2026-09-07  6:44   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 07/10] btrfs: use folios for reading super blocks from the block device Tal Zussman
2026-09-07  6:51   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 08/10] btrfs: keep the free space cache inode mapping at order 0 Tal Zussman
2026-09-06 23:10   ` Qu Wenruo
2026-09-06 22:29 ` [PATCH 09/10] btrfs: convert struct btrfs_io_ctl to use folios Tal Zussman
2026-09-06 22:29 ` [PATCH 10/10] btrfs: rename io_ctl page helpers to folio helpers Tal Zussman
2026-09-06 23:12   ` Qu Wenruo
2026-09-06 23:20     ` Tal Zussman
2026-09-07  0:23       ` Qu Wenruo
2026-09-07  0:58         ` Tal Zussman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a1d2b1d-d533-4f79-abaf-0aea60f895e2@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mason@kernel.org \
    --cc=tz2294@columbia.edu \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®