Re: [PATCH] ext2: Use page_mkwrite vma_operations to get mmap write notification.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Aneesh Kumar K.V <aneesh.kumar@...>
Cc: Andrew Morton <akpm@...>, <cmm@...>, <jack@...>, <linux-ext4@...>, <linux-mm@...>, <linux-kernel@...>
Date: Thursday, June 12, 2008 - 8:22 am

On Thu, 2008-06-12 at 09:36 +0530, Aneesh Kumar K.V wrote:


Even with delayed allocation, the vast majority of the pages won't need
any allocations.  You'll hit delalloc, do a big chunk with the journal
lock held and then do simple writepages that don't need anything
special.

I know the jbd journal_start is cheaper than the reiserfs one is, but it
might not perform well to hold it across the long writepages loop.  At
least reiser saw a good boost when I stopped calling journal_begin in
writepage unless the page really needed allocations.

With the loop you have in mind, it is easy enough to back out and start
the transaction only when required.

-chris


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ext2: Use page_mkwrite vma_operations to get mma..., Aneesh Kumar K.V, (Wed Jun 11, 11:08 am)
Re: [PATCH] ext2: Use page_mkwrite vma_operations to get mma..., Aneesh Kumar K.V, (Thu Jun 12, 12:06 am)
Re: [PATCH] ext2: Use page_mkwrite vma_operations to get mma..., Chris Mason, (Thu Jun 12, 8:22 am)