Skip to content
Commit cdf01dd5 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 847f8776
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment