Re: [PATCH v2] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-04-16 Thread Hugh Dickins
On Mon, 5 Apr 2021, Collin Fijalkovich wrote: > Transparent huge pages are supported for read-only non-shmem files, > but are only used for vmas with VM_DENYWRITE. This condition ensures that > file THPs are protected from writes while an application is running > (ETXTBSY). Any existing file

[PATCH v2] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-04-05 Thread Collin Fijalkovich
Transparent huge pages are supported for read-only non-shmem files, but are only used for vmas with VM_DENYWRITE. This condition ensures that file THPs are protected from writes while an application is running (ETXTBSY). Any existing file THPs are then dropped from the page cache when a file is