commit | cdf01dd5443d0befc8c6a32cb2e3d2f568fd2558 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@linux-foundation.org> | Sat Oct 30 08:55:52 2010 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Sat Oct 30 08:55:52 2010 -0700 |
tree | 97ff92f14a00146ad20b168559bb13f11db7fafb | |
parent | 847f877600313e65c5659476b30d74a6f66e388e [diff] |
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>