From: Wu Fengguang Date: Thu, 22 Jul 2010 04:50:57 +0000 (-0600) Subject: writeback: introduce writeback_control.inodes_written X-Git-Tag: v3.1-rc1~228^2~24 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9bd1159c5fe8995e151fa7df10fa19f8c119cc;p=pandora-kernel.git writeback: introduce writeback_control.inodes_written The flusher works on dirty inodes in batches, and may quit prematurely if the batch of inodes happen to be metadata-only dirtied: in this case wbc->nr_to_write won't be decreased at all, which stands for "no pages written" but also mis-interpreted as "no progress". So introduce writeback_control.inodes_written to count the inodes get cleaned from VFS POV. A non-zero value means there are some progress on writeback, in which case more writeback can be tried. Acked-by: Jan Kara Acked-by: Mel Gorman Signed-off-by: Wu Fengguang --- Reading git-diff-tree failed