Re: [PATCH 2/2] [RFC] pagemap.rst: Document write bit

From: Richard Weinberger
Date: Thu Mar 07 2024 - 06:12:25 EST


----- Ursprüngliche Mail -----
> Von: "David Hildenbrand" <david@xxxxxxxxxx>
> An: "richard" <richard@xxxxxx>, "linux-mm" <linux-mm@xxxxxxxxx>
>> + Bit 58 is useful to detect CoW mappings; however, it does not indicate
>> + whether the page mapping is writable or not. If an anonymous mapping is
>> + writable but the write bit is not set, it means that the next write access
>> + will cause a page fault, and copy-on-write will happen.
>
> That is not true.

Can you please help me correct my obvious misunderstanding?