[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87h7s0va4o.fsf@x220.int.ebiederm.org>
Date: Mon, 14 Sep 2020 07:03:03 -0500
From: ebiederm@...ssion.com (Eric W. Biederman)
To: linmiaohe <linmiaohe@...wei.com>
Cc: "christian.brauner\@ubuntu.com" <christian.brauner@...ntu.com>,
"akpm\@linux-foundation.org" <akpm@...ux-foundation.org>,
"peterz\@infradead.org" <peterz@...radead.org>,
"mingo\@kernel.org" <mingo@...nel.org>,
"christian\@kellner.me" <christian@...lner.me>,
"surenb\@google.com" <surenb@...gle.com>,
"areber\@redhat.com" <areber@...hat.com>,
"shakeelb\@google.com" <shakeelb@...gle.com>,
"cyphar\@cyphar.com" <cyphar@...har.com>,
"tglx\@linutronix.de" <tglx@...utronix.de>,
"linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] fork: Use helper function mapping_allow_writable() in dup_mmap()
linmiaohe <linmiaohe@...wei.com> writes:
> Eric W. Biederman <ebiederm@...ssion.com> wrote:
>> Miaohe Lin <linmiaohe@...wei.com> writes:
>>
>>> Use helper function mapping_allow_writable() to atomic_inc
>>> i_mmap_writable.
>>
>>Why?
>>
>
> Because I think it's better to use the wrapper function instead of the
> open hard code.
My point is there is no context in this commit message.
What makes it better to use the wrapper function?
What makes the wrapper function the appropriate function to use?
Why just this location?
Why wasn't this change made when the wrapper function was introduced?
I could probably read through the code and figure these things out
but the description of the change should really include these things.
Eric
Powered by blists - more mailing lists