]> git.karo-electronics.de Git - karo-tx-linux.git/commit
writeback: Include all dirty inodes in background writeback
authorJan Kara <jack@suse.cz>
Wed, 19 Oct 2011 09:44:41 +0000 (11:44 +0200)
committerWu Fengguang <fengguang.wu@intel.com>
Thu, 8 Dec 2011 02:49:40 +0000 (10:49 +0800)
commitd2c3f73b5c59152cb6acfdc6324931793a98d91f
tree4f2927fba098933956b794fd3360f9c9c6169b53
parentcf4a8af63d8ec0810ddda8c1c4cd97e435b1deb4
writeback: Include all dirty inodes in background writeback

Current livelock avoidance code makes background work to include only inodes
that were dirtied before background writeback has started. However background
writeback can be running for a long time and thus excluding newly dirtied
inodes can eventually exclude significant portion of dirty inodes making
background writeback inefficient. Since background writeback avoids livelocking
the flusher thread by yielding to any other work, there is no real reason why
background work should not include all dirty inodes so change the logic in
wb_writeback().

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
fs/fs-writeback.c