]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mm: write_cache_pages optimise page cleaning
authorNick Piggin <npiggin@suse.de>
Tue, 6 Jan 2009 22:39:10 +0000 (14:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:58:59 +0000 (15:58 -0800)
commit515f4a037fb9ab736f8bad733fcd2ffd350cf265
tree0862eee6405297ef23a5b3d8906cfef5783c0c77
parent5a3d5c9813db56a75934eb1015367fda23a8b0b4
mm: write_cache_pages optimise page cleaning

In write_cache_pages, if we get stuck behind another process that is
cleaning pages, we will be forced to wait for them to finish, then perform
our own writeout (if it was redirtied during the long wait), then wait for
that.

If a page under writeout is still clean, we can skip waiting for it (if
we're part of a data integrity sync, we'll be waiting for all writeout
pages afterwards, so we'll still be waiting for the other guy's write
that's cleaned the page).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c