[PATCH 3/4] mm/zswap: s/red-black tree/xarray/

SeongJae Park posted 4 patches 4 months, 1 week ago
[PATCH 3/4] mm/zswap: s/red-black tree/xarray/
Posted by SeongJae Park 4 months, 1 week ago
Changes made by commit 796c2c23e14e ("zswap: replace RB tree with
xarray") is not reflected on a comment.  Update the comment.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 mm/zswap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/zswap.c b/mm/zswap.c
index f6b1c8832a4f..5d0f8b13a958 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -175,7 +175,7 @@ static struct shrinker *zswap_shrinker;
  * This structure contains the metadata for tracking a single compressed
  * page within zswap.
  *
- * swpentry - associated swap entry, the offset indexes into the red-black tree
+ * swpentry - associated swap entry, the offset indexes into the xarray
  * length - the length in bytes of the compressed page data.  Needed during
  *          decompression.
  * referenced - true if the entry recently entered the zswap pool. Unset by the
-- 
2.39.5
Re: [PATCH 3/4] mm/zswap: s/red-black tree/xarray/
Posted by Chengming Zhou 4 months ago
On 2025/10/4 04:38, SeongJae Park wrote:
> Changes made by commit 796c2c23e14e ("zswap: replace RB tree with
> xarray") is not reflected on a comment.  Update the comment.
> 
> Signed-off-by: SeongJae Park <sj@kernel.org>

Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>

> ---
>   mm/zswap.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/zswap.c b/mm/zswap.c
> index f6b1c8832a4f..5d0f8b13a958 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -175,7 +175,7 @@ static struct shrinker *zswap_shrinker;
>    * This structure contains the metadata for tracking a single compressed
>    * page within zswap.
>    *
> - * swpentry - associated swap entry, the offset indexes into the red-black tree
> + * swpentry - associated swap entry, the offset indexes into the xarray
>    * length - the length in bytes of the compressed page data.  Needed during
>    *          decompression.
>    * referenced - true if the entry recently entered the zswap pool. Unset by the
Re: [PATCH 3/4] mm/zswap: s/red-black tree/xarray/
Posted by Nhat Pham 4 months ago
On Fri, Oct 3, 2025 at 1:38 PM SeongJae Park <sj@kernel.org> wrote:
>
> Changes made by commit 796c2c23e14e ("zswap: replace RB tree with
> xarray") is not reflected on a comment.  Update the comment.
>
> Signed-off-by: SeongJae Park <sj@kernel.org>

Acked-by: Nhat Pham <nphamcs@gmail.com>
Re: [PATCH 3/4] mm/zswap: s/red-black tree/xarray/
Posted by Yosry Ahmed 4 months ago
On Fri, Oct 03, 2025 at 01:38:50PM -0700, SeongJae Park wrote:
> Changes made by commit 796c2c23e14e ("zswap: replace RB tree with
> xarray") is not reflected on a comment.  Update the comment.
> 
> Signed-off-by: SeongJae Park <sj@kernel.org>

Acked-by: Yosry Ahmed <yosry.ahmed@linux.dev>

> ---
>  mm/zswap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/zswap.c b/mm/zswap.c
> index f6b1c8832a4f..5d0f8b13a958 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -175,7 +175,7 @@ static struct shrinker *zswap_shrinker;
>   * This structure contains the metadata for tracking a single compressed
>   * page within zswap.
>   *
> - * swpentry - associated swap entry, the offset indexes into the red-black tree
> + * swpentry - associated swap entry, the offset indexes into the xarray
>   * length - the length in bytes of the compressed page data.  Needed during
>   *          decompression.
>   * referenced - true if the entry recently entered the zswap pool. Unset by the
> -- 
> 2.39.5