Skip to contentSkip to conversation

fork: Use helper function mapping_allow_writable() in dup_mmap()

PATCH linmiaohe 1 participant 1 message Sep 15, 2020

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 15 lines · Eric W. Biederman
Quoted 11 lines · linmiaohe
Quoted 7 lines · Eric W. Biederman
Quoted 2 lines · Miaohe Lin

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.

Quoted 8 lines

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

I see. Many thanks for your detailed explaination. :)