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
--