From: Eric Sandeen Date: Wed, 23 Dec 2009 12:57:07 +0000 (-0500) Subject: fs-writeback: Add helper function to start writeback if idle X-Git-Tag: v2.6.33-rc3~34^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17bd55d037a02b04d9119511cfd1a4b985d20f63;p=pandora-kernel.git fs-writeback: Add helper function to start writeback if idle ext4, at least, would like to start pushing on writeback if it starts to get close to ENOSPC when reserving worst-case blocks for delalloc writes. Writing out delalloc data will convert those worst-case predictions into usually smaller actual usage, freeing up space before we hit ENOSPC based on this speculation. Thanks to Jens for the suggestion for the helper function, & the naming help. I've made the helper return status on whether writeback was started even though I don't plan to use it in the ext4 patch; it seems like it would be potentially useful to test this in some cases. Signed-off-by: Eric Sandeen Acked-by: Jan Kara --- Reading git-diff-tree failed