From: Peter Zijlstra Date: Mon, 8 Oct 2007 16:54:37 +0000 (+0200) Subject: mm: set_page_dirty_balance() vs ->page_mkwrite() X-Git-Tag: v2.6.23~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a200ee182a016752464a12cb2e8762e48254bb09;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed