2020-07-20 11:32:39

by Markus Elfring

[permalink] [raw]
Subject: Re: [f2fs-dev] [PATCH] f2fs: compress: Avoid memory leak on cc->cpages

> Memory allocated for storing compressed pages' poitner should be
> released after f2fs_write_compressed_pages(), otherwise it will
> cause memory leak issue.

* Would an imperative wording be more appropriate (without a typo)
for the change description?

* Will the tag “Fixes” become helpful for the commit message?

Regards,
Markus


2020-07-20 12:39:57

by Chao Yu

[permalink] [raw]
Subject: Re: [f2fs-dev] [PATCH] f2fs: compress: Avoid memory leak on cc->cpages

On 2020/7/20 19:31, Markus Elfring wrote:
>> Memory allocated for storing compressed pages' poitner should be
>> released after f2fs_write_compressed_pages(), otherwise it will
>> cause memory leak issue.
>
> * Would an imperative wording be more appropriate (without a typo)
> for the change description?
>
> * Will the tag “Fixes” become helpful for the commit message?

It looks this is replied from patch-robot? since I found all comments
you replied are almost the same.

And what's funny is that the reply starts being caught by another patch-bot
from Greg...

https://lkml.org/lkml/2020/6/28/157

>
> Regards,
> Markus
> .
>

2020-07-20 12:50:50

by Markus Elfring

[permalink] [raw]
Subject: Re: [f2fs-dev] [PATCH] f2fs: compress: Avoid memory leak on cc->cpages

>>> Memory allocated for storing compressed pages' poitner should be
>>> released after f2fs_write_compressed_pages(), otherwise it will
>>> cause memory leak issue.
>>
>> * Would an imperative wording be more appropriate (without a typo)
>>   for the change description?
>>
>> * Will the tag “Fixes” become helpful for the commit message?
>
> It looks this is replied from patch-robot? since I found all comments
> you replied are almost the same.

I dare to repeat such suggestions because several patches contain
improvable details (not only in the affected source code).

Regards,
Markus