From: Eric Sandeen Date: Thu, 28 Oct 2010 01:30:03 +0000 (-0400) Subject: ext4: stop looping in ext4_num_dirty_pages when max_pages reached X-Git-Tag: v2.6.37-rc1~76^2^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=659c6009ca2e3a01acc9881bafe5f55ef09c965b;p=pandora-kernel.git ext4: stop looping in ext4_num_dirty_pages when max_pages reached Today we simply break out of the inner loop when we have accumulated max_pages; this keeps scanning forwad and doing pagevec_lookup_tag() in the while (!done) loop, this does potentially a lot of work with no net effect. When we have accumulated max_pages, just clean up and return. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed