]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
writeback: avoid unnecessary calculation of bdi dirty thresholds
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 11 Aug 2010 21:17:39 +0000 (14:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 15:43:29 +0000 (08:43 -0700)
commit16c4042f08919f447d6b2a55679546c9b97c7264
tree0248b64d46237854ebe67efe8c742cb5878d8611
parente50e37201ae2e7d6a52e87815759e6481f0bcfb9
writeback: avoid unnecessary calculation of bdi dirty thresholds

Split get_dirty_limits() into global_dirty_limits()+bdi_dirty_limit(), so
that the latter can be avoided when under global dirty background
threshold (which is the normal state for most systems).

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fs-writeback.c
include/linux/writeback.h
mm/backing-dev.c
mm/page-writeback.c