summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-30 17:55:52 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-30 17:55:52 +0200
commitcdf01dd5443d0befc8c6a32cb2e3d2f568fd2558 (patch)
tree97ff92f14a00146ad20b168559bb13f11db7fafb /fs/btrfs/super.c
parentMerge branch 'audit.b64' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff)
downloadlinux-cdf01dd5443d0befc8c6a32cb2e3d2f568fd2558.tar.xz
linux-cdf01dd5443d0befc8c6a32cb2e3d2f568fd2558.zip
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>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions