Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-28 Thread Kirill A. Shutemov
Dave Hansen wrote: > On 03/14/2013 10:50 AM, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > For now we still write/read at most PAGE_CACHE_SIZE bytes a time. > > > > This implementation doesn't cover address spaces with backing store. > ... > > --- a/mm/filemap.c > > +++

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-28 Thread Kirill A. Shutemov
Dave Hansen wrote: On 03/14/2013 10:50 AM, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com For now we still write/read at most PAGE_CACHE_SIZE bytes a time. This implementation doesn't cover address spaces with backing store. ... ---

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-22 Thread Dave Hansen
On 03/14/2013 10:50 AM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > For now we still write/read at most PAGE_CACHE_SIZE bytes a time. > > This implementation doesn't cover address spaces with backing store. ... > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -1165,12 +1165,23 @@

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-22 Thread Dave Hansen
On 03/14/2013 10:50 AM, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com For now we still write/read at most PAGE_CACHE_SIZE bytes a time. This implementation doesn't cover address spaces with backing store. ... --- a/mm/filemap.c +++ b/mm/filemap.c @@

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov > wrote: > > + if (PageTransTail(page)) { > > + page_cache_release(page); > > + page = find_get_page(mapping, > > + index &

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-15 Thread Kirill A. Shutemov
Hillf Danton wrote: On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: + if (PageTransTail(page)) { + page_cache_release(page); + page = find_get_page(mapping, +

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-14 Thread Hillf Danton
On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov wrote: > + if (PageTransTail(page)) { > + page_cache_release(page); > + page = find_get_page(mapping, > + index & ~HPAGE_CACHE_INDEX_MASK); check

[PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" For now we still write/read at most PAGE_CACHE_SIZE bytes a time. This implementation doesn't cover address spaces with backing store. Signed-off-by: Kirill A. Shutemov --- mm/filemap.c | 35 ++- 1 file changed, 30 insertions(+), 5

[PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-14 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com For now we still write/read at most PAGE_CACHE_SIZE bytes a time. This implementation doesn't cover address spaces with backing store. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/filemap.c | 35

Re: [PATCHv2, RFC 14/30] thp, mm: naive support of thp in generic read/write routines

2013-03-14 Thread Hillf Danton
On Fri, Mar 15, 2013 at 1:50 AM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: + if (PageTransTail(page)) { + page_cache_release(page); + page = find_get_page(mapping, + index