]> git.baikalelectronics.ru Git - kernel.git/commit
fs-writeback.c: unify some common code
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Oct 2010 15:55:52 +0000 (08:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Oct 2010 15:55:52 +0000 (08:55 -0700)
commit10c7537644a2fd07203e3f6c41e65529399174c1
tree97ff92f14a00146ad20b168559bb13f11db7fafb
parent6743ba95b17186168944de91b60a2f8490e73841
fs-writeback.c: unify some common code

The btrfs merge looks like hell, because it changes fs-writeback.c, and
the crazy code has this repeated "estimate number of dirty pages"
counting that involves three different helper functions.  And it's done
in two different places.

Just unify that whole calculation as a "get_nr_dirty_pages()" helper
function, and the merge result will look half-way decent.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fs-writeback.c