Re: [PATCH] fork: Use helper function mapping_allow_writable() in dup_mmap()

From: linmiaohe
Date: Sun Sep 13 2020 - 21:38:33 EST


Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> Miaohe Lin <linmiaohe@xxxxxxxxxx> 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.
Thanks.