]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: stop looping in ext4_num_dirty_pages when max_pages reached
authorEric Sandeen <sandeen@redhat.com>
Thu, 28 Oct 2010 01:30:03 +0000 (21:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Oct 2010 01:30:03 +0000 (21:30 -0400)
commit90a929a64da56d376d94bbbf843b370e2f209ab9
treec7d6b0a8cfb8f5979f3f8d0e0e5122ffd9c688be
parent8c67b93fa63ec100696ef7ce681523219bce52ad
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 <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c