]> git.baikalelectronics.ru Git - kernel.git/commit
mm: set_page_dirty_balance() vs ->page_mkwrite()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 8 Oct 2007 16:54:37 +0000 (18:54 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 8 Oct 2007 19:58:14 +0000 (12:58 -0700)
commitca14e20850fd7a61482710a2b245354bf88e05f0
tree7b273f002625a4c368f7b20b144990f7f4f81df9
parent799c99cd2ce033c85c370189a75e411e02041fb3
mm: set_page_dirty_balance() vs ->page_mkwrite()

All the current page_mkwrite() implementations also set the page dirty. Which
results in the set_page_dirty_balance() call to _not_ call balance, because the
page is already found dirty.

This allows us to dirty a _lot_ of pages without ever hitting
balance_dirty_pages().  Not good (tm).

Force a balance call if ->page_mkwrite() was successful.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/writeback.h
mm/memory.c
mm/page-writeback.c