[merged mm-stable] mm-damon-paddr-improve-readability-of-damon_pa_stat.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: mm/damon/paddr: improve readability of damon_pa_stat
has been removed from the -mm tree.  Its filename was
     mm-damon-paddr-improve-readability-of-damon_pa_stat.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
Subject: mm/damon/paddr: improve readability of damon_pa_stat
Date: Mon, 13 Jan 2025 13:01:56 -0800

damon_pa_stat contains an unnecessary goto statement, and the if/else can
be re-written to be more readable.

This patch is written on top of SJ's patch series [1], which in turn is
written on top of another one of his series [2].

[1] https://lore.kernel.org/all/20241219040327.61902-1-sj@xxxxxxxxxx/
[2] https://lore.kernel.org/all/20241213215306.54778-1-sj@xxxxxxxxxx/

Link: https://lkml.kernel.org/r/20250113210201.446051-1-joshua.hahnjy@xxxxxxxxx
Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/damon/paddr.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/mm/damon/paddr.c~mm-damon-paddr-improve-readability-of-damon_pa_stat
+++ a/mm/damon/paddr.c
@@ -513,11 +513,8 @@ static unsigned long damon_pa_stat(struc
 			continue;
 		}
 
-		if (damos_pa_filter_out(s, folio))
-			goto put_folio;
-		else
+		if (!damos_pa_filter_out(s, folio))
 			*sz_filter_passed += folio_size(folio);
-put_folio:
 		addr += folio_size(folio);
 		folio_put(folio);
 	}
_

Patches currently in -mm which might be from joshua.hahnjy@xxxxxxxxx are






[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux