Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Christoph Lameter
On Thu, 26 Jul 2007, Hugh Dickins wrote: > > We would need to redirect all of the page state determinations and changes > > to the head page anyways. So the memory.c code would have to deal with two > > struct page pointers: One to the head where the state is kept and one to > > the tail page

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Christoph Lameter
On Thu, 26 Jul 2007, Hugh Dickins wrote: > I expect we could take that approach in the current kernel, yes > (though it would put those compound tests into the bio code that > Jens was preferring to remove). But I think not if your variable > page_cache_size went in: imagine an mmap of the tail

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Hugh Dickins
On Thu, 26 Jul 2007, Christoph Lameter wrote: > On Thu, 26 Jul 2007, Hugh Dickins wrote: > > > I expect we could take that approach in the current kernel, yes > > (though it would put those compound tests into the bio code that > > Jens was preferring to remove). But I think not if your variable

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Hugh Dickins
On Mon, 23 Jul 2007, Christoph Lameter wrote: > On Thu, 19 Jul 2007 18:35:17 +0100 (BST) > Hugh Dickins <[EMAIL PROTECTED]> wrote: > > > I didn't see any attention to set_page_dirty in Christoph's > > Large Blocksize (variable page_cachesize) patches, but I expect > > he'd also be wanting

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Hugh Dickins
On Thu, 26 Jul 2007, Christoph Lameter wrote: On Thu, 26 Jul 2007, Hugh Dickins wrote: I expect we could take that approach in the current kernel, yes (though it would put those compound tests into the bio code that Jens was preferring to remove). But I think not if your variable

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Hugh Dickins
On Mon, 23 Jul 2007, Christoph Lameter wrote: On Thu, 19 Jul 2007 18:35:17 +0100 (BST) Hugh Dickins [EMAIL PROTECTED] wrote: I didn't see any attention to set_page_dirty in Christoph's Large Blocksize (variable page_cachesize) patches, but I expect he'd also be wanting set_page_dirty to

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Christoph Lameter
On Thu, 26 Jul 2007, Hugh Dickins wrote: We would need to redirect all of the page state determinations and changes to the head page anyways. So the memory.c code would have to deal with two struct page pointers: One to the head where the state is kept and one to the tail page that

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-26 Thread Christoph Lameter
On Thu, 26 Jul 2007, Hugh Dickins wrote: I expect we could take that approach in the current kernel, yes (though it would put those compound tests into the bio code that Jens was preferring to remove). But I think not if your variable page_cache_size went in: imagine an mmap of the tail

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-23 Thread Christoph Lameter
On Thu, 19 Jul 2007 18:35:17 +0100 (BST) Hugh Dickins <[EMAIL PROTECTED]> wrote: > I didn't see any attention to set_page_dirty in Christoph's > Large Blocksize (variable page_cachesize) patches, but I expect > he'd also be wanting set_page_dirty to act on compound_head. There is no need for

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-23 Thread Christoph Lameter
On Thu, 19 Jul 2007 18:35:17 +0100 (BST) Hugh Dickins [EMAIL PROTECTED] wrote: I didn't see any attention to set_page_dirty in Christoph's Large Blocksize (variable page_cachesize) patches, but I expect he'd also be wanting set_page_dirty to act on compound_head. There is no need for special

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread William Lee Irwin III
On Thu, Jul 19, 2007 at 06:35:17PM +0100, Hugh Dickins wrote: > I started from your patch. But it now seems to me a bugfix to remove > those PageCompound tests, because they're preventing a hugetlb page > from being marked dirty, when Ken needs it to be marked dirty so > /proc/sys/vm/drop_caches

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Hugh Dickins
On Thu, 19 Jul 2007, Jens Axboe wrote: > On Wed, Jul 18 2007, Hugh Dickins wrote: > > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > > > Since I had my hands dirty already... > > > > Great, thanks. (There's also such a test in fs/nfs/direct.c, > > but let's not trouble Trond until we've settled

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Jens Axboe
On Thu, Jul 19 2007, Jens Axboe wrote: > On Wed, Jul 18 2007, Hugh Dickins wrote: > > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > > > Since I had my hands dirty already... > > > > Great, thanks. (There's also such a test in fs/nfs/direct.c, > > but let's not trouble Trond until we've settled

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > Since I had my hands dirty already... > > Great, thanks. (There's also such a test in fs/nfs/direct.c, > but let's not trouble Trond until we've settled what to do here.) > > > > > --- > > > > [PATCH]

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: Since I had my hands dirty already... Great, thanks. (There's also such a test in fs/nfs/direct.c, but let's not trouble Trond until we've settled what to do here.) --- [PATCH] Remove

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Jens Axboe
On Thu, Jul 19 2007, Jens Axboe wrote: On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: Since I had my hands dirty already... Great, thanks. (There's also such a test in fs/nfs/direct.c, but let's not trouble Trond until we've settled what to do

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread Hugh Dickins
On Thu, 19 Jul 2007, Jens Axboe wrote: On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: Since I had my hands dirty already... Great, thanks. (There's also such a test in fs/nfs/direct.c, but let's not trouble Trond until we've settled what to do

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-19 Thread William Lee Irwin III
On Thu, Jul 19, 2007 at 06:35:17PM +0100, Hugh Dickins wrote: I started from your patch. But it now seems to me a bugfix to remove those PageCompound tests, because they're preventing a hugetlb page from being marked dirty, when Ken needs it to be marked dirty so /proc/sys/vm/drop_caches

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: > > Since I had my hands dirty already... Great, thanks. (There's also such a test in fs/nfs/direct.c, but let's not trouble Trond until we've settled what to do here.) > > --- > > [PATCH] Remove PageCompound() checks before calling set_page_dirty() >

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > OK, you clearly have more knowledge in that area than I, but I do wish > > that you would have made a note in the code at least to remove things > > like this. It's pretty ugly to have superflous tests like

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: > > OK, you clearly have more knowledge in that area than I, but I do wish > that you would have made a note in the code at least to remove things > like this. It's pretty ugly to have superflous tests like that, > especially since there was not even a

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Jens Axboe wrote: > On Wed, Jul 18 2007, Hugh Dickins wrote: > > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > > > We have these checks scattered, makes sense to put them in > > > set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() > > > does

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: > On Wed, 18 Jul 2007, Jens Axboe wrote: > > > > We have these checks scattered, makes sense to put them in > > set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() > > does set_page_dirty_lock() without checking for a compound page,

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: > > We have these checks scattered, makes sense to put them in > set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() > does set_page_dirty_lock() without checking for a compound page, instead > of adding one more check we move it to

[PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
Hi, We have these checks scattered, makes sense to put them in set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() does set_page_dirty_lock() without checking for a compound page, instead of adding one more check we move it to set_page_dirty(). Signed-off-by: Jens Axboe

[PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
Hi, We have these checks scattered, makes sense to put them in set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() does set_page_dirty_lock() without checking for a compound page, instead of adding one more check we move it to set_page_dirty(). Signed-off-by: Jens Axboe

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: We have these checks scattered, makes sense to put them in set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() does set_page_dirty_lock() without checking for a compound page, instead of adding one more check we move it to

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: We have these checks scattered, makes sense to put them in set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() does set_page_dirty_lock() without checking for a compound page, instead

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Jens Axboe wrote: On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: We have these checks scattered, makes sense to put them in set_page_dirty() instead. This also fixes a bug where __bio_unmap_user() does set_page_dirty_lock()

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: OK, you clearly have more knowledge in that area than I, but I do wish that you would have made a note in the code at least to remove things like this. It's pretty ugly to have superflous tests like that, especially since there was not even a comment

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Jens Axboe
On Wed, Jul 18 2007, Hugh Dickins wrote: On Wed, 18 Jul 2007, Jens Axboe wrote: OK, you clearly have more knowledge in that area than I, but I do wish that you would have made a note in the code at least to remove things like this. It's pretty ugly to have superflous tests like that,

Re: [PATCH] Check for compound pages in set_page_dirty()

2007-07-18 Thread Hugh Dickins
On Wed, 18 Jul 2007, Jens Axboe wrote: Since I had my hands dirty already... Great, thanks. (There's also such a test in fs/nfs/direct.c, but let's not trouble Trond until we've settled what to do here.) --- [PATCH] Remove PageCompound() checks before calling set_page_dirty() Pre