Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-07-15 Thread Kirill A. Shutemov
On Wed, Jul 15, 2015 at 03:20:01PM -0500, Christoph Lameter wrote: > On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > > > Currently we take naive approach to page flags on compound -- we set the > > flag on the page without consideration if the flag makes sense for tail > > page or for compound pa

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-07-15 Thread Christoph Lameter
On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > Currently we take naive approach to page flags on compound -- we set the > flag on the page without consideration if the flag makes sense for tail > page or for compound page in general. This patchset try to sort this out > by defining per-flag poli

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-25 Thread Kirill A. Shutemov
On Tue, Mar 24, 2015 at 04:42:48PM -0700, Hugh Dickins wrote: > On Mon, 23 Mar 2015, Kirill A. Shutemov wrote: > > Yes, it works until some sound driver decide it wants to use > > page->mappging. > > (a) Why would it want to use page->mapping? No idea. > (b) What's the problem if it wants to use

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-24 Thread Hugh Dickins
On Mon, 23 Mar 2015, Kirill A. Shutemov wrote: > On Sun, Mar 22, 2015 at 05:28:47PM -0700, Hugh Dickins wrote: > > On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > > > > > Currently we take naive approach to page flags on compound -- we set the > > > flag on the page without consideration if the f

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-24 Thread Kirill A. Shutemov
On Tue, Mar 24, 2015 at 08:39:49PM +0300, Konstantin Khlebnikov wrote: > On Thu, Mar 19, 2015 at 8:08 PM, Kirill A. Shutemov > wrote: > > Currently we take naive approach to page flags on compound -- we set the > > flag on the page without consideration if the flag makes sense for tail > > page or

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-24 Thread Konstantin Khlebnikov
On Thu, Mar 19, 2015 at 8:08 PM, Kirill A. Shutemov wrote: > Currently we take naive approach to page flags on compound -- we set the > flag on the page without consideration if the flag makes sense for tail > page or for compound page in general. This patchset try to sort this out > by defining p

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-23 Thread Kirill A. Shutemov
On Sun, Mar 22, 2015 at 05:28:47PM -0700, Hugh Dickins wrote: > On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > > > Currently we take naive approach to page flags on compound -- we set the > > flag on the page without consideration if the flag makes sense for tail > > page or for compound page in

Re: [PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-22 Thread Hugh Dickins
On Thu, 19 Mar 2015, Kirill A. Shutemov wrote: > Currently we take naive approach to page flags on compound -- we set the > flag on the page without consideration if the flag makes sense for tail > page or for compound page in general. This patchset try to sort this out > by defining per-flag poli

[PATCH 00/16] Sanitize usage of ->flags and ->mapping for tail pages

2015-03-19 Thread Kirill A. Shutemov
Currently we take naive approach to page flags on compound -- we set the flag on the page without consideration if the flag makes sense for tail page or for compound page in general. This patchset try to sort this out by defining per-flag policy on what need to be done if page-flag helper operate o