[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240417121645.25355-1-lipeifeng@oppo.com>
Date: Wed, 17 Apr 2024 20:16:45 +0800
From: lipeifeng@...o.com
To: lipeifeng@...o.com,
hannes@...xchg.org,
mhocko@...nel.org,
shakeel.butt@...ux.dev,
muchun.song@...ux.dev
Cc: cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] mm: fix the comment error of memcontrol.h
From: Peifeng Li <lipeifeng@...o.com>
Signed-off-by: Peifeng Li <lipeifeng@...o.com>
---
include/linux/memcontrol.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 394fd0a887ae..07d08be706bf 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -1679,7 +1679,7 @@ static inline bool folio_matches_lruvec(struct folio *folio,
lruvec_memcg(lruvec) == folio_memcg(folio);
}
-/* Don't lock again iff page's lruvec locked */
+/* Don't lock again if page's lruvec locked */
static inline struct lruvec *folio_lruvec_relock_irq(struct folio *folio,
struct lruvec *locked_lruvec)
{
@@ -1693,7 +1693,7 @@ static inline struct lruvec *folio_lruvec_relock_irq(struct folio *folio,
return folio_lruvec_lock_irq(folio);
}
-/* Don't lock again iff folio's lruvec locked */
+/* Don't lock again if folio's lruvec locked */
static inline void folio_lruvec_relock_irqsave(struct folio *folio,
struct lruvec **lruvecp, unsigned long *flags)
{
--
2.34.1
Powered by blists - more mailing lists