Re: [PATCH v7 6/6] mm,thp: avoid writes to file with THP in pagecache

2019-06-24 Thread Song Liu
> On Jun 24, 2019, at 5:49 AM, Kirill A. Shutemov wrote: > > On Sat, Jun 22, 2019 at 10:47:49PM -0700, Song Liu wrote: >> In previous patch, an application could put part of its text section in >> THP via madvise(). These THPs will be protected from writes when the >> application is still

Re: [PATCH v7 6/6] mm,thp: avoid writes to file with THP in pagecache

2019-06-24 Thread Kirill A. Shutemov
On Sat, Jun 22, 2019 at 10:47:49PM -0700, Song Liu wrote: > In previous patch, an application could put part of its text section in > THP via madvise(). These THPs will be protected from writes when the > application is still running (TXTBSY). However, after the application > exits, the file is

[PATCH v7 6/6] mm,thp: avoid writes to file with THP in pagecache

2019-06-22 Thread Song Liu
In previous patch, an application could put part of its text section in THP via madvise(). These THPs will be protected from writes when the application is still running (TXTBSY). However, after the application exits, the file is available for writes. This patch avoids writes to file THP by