Re: [PATCH 3/3] ext3: Avoid starting a transaction in writepagewhen not necessary

From: Jan Kara
Date: Fri Mar 27 2009 - 18:24:01 EST


On Fri 27-03-09 16:24:31, Theodore Ts'o wrote:
> From: Jan Kara <jack@xxxxxxx>
>
> We don't have to start a transaction in writepage() when all the blocks
> are a properly allocated. Even in ordered mode either the data has been
> written via write() and they are thus already added to transaction's list
> or the data was written via mmap and then it's random in which transaction
> they get written anyway.
>
> This should help VM to pageout dirty memory without blocking on transaction
> commits.
>
> Signed-off-by: Jan Kara <jack@xxxxxxx>
> Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>
Please, use the patch below instead (and I'd also wait a few days for
Mingo to check whether it also helps him). It also changes data=writeback
mode in the same way and it adheres to coding style...

Honza
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR

---