* [PATCH] mm: fix the comment error of memcontrol.h
@ 2024-04-17 12:16 lipeifeng
2024-04-17 12:24 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: lipeifeng @ 2024-04-17 12:16 UTC (permalink / raw)
To: lipeifeng, hannes, mhocko, shakeel.butt, muchun.song
Cc: cgroups, linux-kernel
From: Peifeng Li <lipeifeng@oppo.com>
Signed-off-by: Peifeng Li <lipeifeng@oppo.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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mm: fix the comment error of memcontrol.h
2024-04-17 12:16 [PATCH] mm: fix the comment error of memcontrol.h lipeifeng
@ 2024-04-17 12:24 ` Michal Hocko
2024-04-18 2:12 ` 李培锋
0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2024-04-17 12:24 UTC (permalink / raw)
To: lipeifeng; +Cc: hannes, shakeel.butt, muchun.song, cgroups, linux-kernel
On Wed 17-04-24 20:16:45, lipeifeng@oppo.com wrote:
> From: Peifeng Li <lipeifeng@oppo.com>
>
> Signed-off-by: Peifeng Li <lipeifeng@oppo.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 */
Not a typo. iff stands for if and only if
--
Michal Hocko
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm: fix the comment error of memcontrol.h
2024-04-17 12:24 ` Michal Hocko
@ 2024-04-18 2:12 ` 李培锋
0 siblings, 0 replies; 3+ messages in thread
From: 李培锋 @ 2024-04-18 2:12 UTC (permalink / raw)
To: Michal Hocko; +Cc: hannes, shakeel.butt, muchun.song, cgroups, linux-kernel
在 2024/4/17 20:24, Michal Hocko 写道:
> On Wed 17-04-24 20:16:45, lipeifeng@oppo.com wrote:
>> From: Peifeng Li <lipeifeng@oppo.com>
>>
>> Signed-off-by: Peifeng Li <lipeifeng@oppo.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 */
> Not a typo. iff stands for if and only if
Allright, thank for your response.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-18 2:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 12:16 [PATCH] mm: fix the comment error of memcontrol.h lipeifeng
2024-04-17 12:24 ` Michal Hocko
2024-04-18 2:12 ` 李培锋
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.